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
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.
Comments
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
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.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
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.