Try a Global Variable, boolean with property IncludeInDataset as true. Set this global variable in the Visible property of the object and try to change the value of this variable with code. Perhaps a CurrPage.UPDATE is needed but this should work.
Try a Global Variable, boolean with property IncludeInDataset as true. Set this global variable in the Visible property of the object and try to change the value of this variable with code. Perhaps a CurrPage.UPDATE is needed but this should work.
I tested it (NAV 2009R2), even with CurrPage.UPDATE, but seems the global variable is checked only during page opening :?
Sure enough help says "For field and action controls, the variable must be resolved by the OnInit Trigger or OnOpenPage Trigger. ".
Comments
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com
I tested it (NAV 2009R2), even with CurrPage.UPDATE, but seems the global variable is checked only during page opening :?
Sure enough help says "For field and action controls, the variable must be resolved by the OnInit Trigger or OnOpenPage Trigger. ".
I hav'nt tried on a field though. Do you use the Visible property? Try the Enable property.
Johannes Sebastian
MB7-840,MB7-841