I am using NAV 2013 and I want to be able to automatically disable all fields that do not apply when I select an option in a particular field on a page.
I am using the employee card page which is customized a bit so that if I select the option Active in the Status field all other fields on the form that do not apply should be disabled.
What??? I’m usually a very patient person, but if don’t you know how to add a global variable in C/AL? Then I really suggest that you go take a basic NAV Development course! I hope you do know that, and I only misunderstood your reply because of language problems! [;)]
Check the variable in the Item Card and see how they are used on the field control properties in your page.
I hope you know how to create a global variable. Create a global variable “e” of type Boolean.
Go into the group properties, where you will find Editable property. Here the default value would be TRUE. In place of true/false you may put “e”. And of course you may code for ‘e’ the way you want it to work.
You must also remember to set the IncludeInDataSet to Yes when you create the EnableField global variable. Just like the xxEnable variables on the Item Card page.