Particular option shown

Jeegen_Prajapati
Member Posts: 22
I have two field 1st is Department and 2nd is Document both have same data types Option but i want when i select particular department then limited document shown not shown all the document how to do that
0
Comments
-
Can you please elaborate a bit more??Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
ex. when i select the HR department in drop down list then in document drop down list only HR Related value will e shown.
like when we select USA in country drop down list then very next drop down list only shown city that is in USA no other country's city was displayed.0 -
You'll have to code your own lookup in the OnLookup trigger if you want it dependent on the value of another one.0
-
Yep as @m_berger said, you need to write code on the OnLookup trigger where based in your codition the look up will keep changing.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
You can create multipe Fields of the page each with a select number of OptionString and show them depending the Department choosen.
OBJECT Page 60000 Demo { OBJECT-PROPERTIES { Date=; Time=; Version List=; } PROPERTIES { } CONTROLS { { 1000000000;;Container; ContainerType=ContentArea } { 1000000001;1;Field ; SourceExpr=Departments; OnValidate=BEGIN DepAVisible := Departments = Departments::"Dep A"; DepBVisible := Departments = Departments::"Dep B"; DepCVisible := Departments = Departments::"Dep C"; END; } { 1000000002;1;Field ; Name=DocumentsA; OptionCaptionML=ENU=Dep A Doc 1,Dep A Doc 2,Dep A Doc 3; SourceExpr=Documents; Visible=DepAVisible } { 1000000003;1;Field ; Name=DocumentsB; OptionCaptionML=ENU=,,,Dep B Doc 1,Dep B Doc 2,Dep B Doc 3; SourceExpr=Documents; Visible=DepBVisible } { 1000000004;1;Field ; Name=DocumentsC; OptionCaptionML=ENU=,,,,,,Dep C Doc 1,Dep C Doc 2,Dep C Doc3; SourceExpr=Documents; Visible=DepCVisible } } CODE { VAR Departments@1000000000 : 'Dep A,Dep B,Dep C'; Documents@1000000001 : 'Dep A Doc 1,Dep A Doc 2,Dep A Doc 3,Dep B Doc 1,Dep B Doc 2,Dep B Doc 3,Dep C Doc 1,Dep C Doc 2,Dep C Doc3'; DepAVisible@1000000002 : Boolean; DepBVisible@1000000003 : Boolean; DepCVisible@1000000004 : Boolean; BEGIN END. } }
0 -
Code
DepAVisible := Departments = Departments::"Dep A";
DepBVisible := Departments = Departments::"Dep B";
DepCVisible := Departments = Departments::"Dep C";
should be in OnAfterGetRecord and OnAfterGetCurrRecord triggers due to appropriate showing fields during traversing records. In OnAfterValidate triggers should be CurrPage.UPDATE command only.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions