Page Cntrl Visibility
navuser1
Member Posts: 1,334
Dear All,
Is it possible to show/hide a Page Control(field) on the basis of some field validation ?
Thank you.
Is it possible to show/hide a Page Control(field) on the basis of some field validation ?
Thank you.
Now or Never
0
Comments
-
I think control visibility can be managed only during the opening of the page itself...* Daniele Rebussi * | * Rebu NAV Diary *0
-
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.________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com0 -
thegunzo wrote: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. ".* Daniele Rebussi * | * Rebu NAV Diary *0 -
I think I've used it to enable/disable an Page action, triggered by field onvalidate.
I hav'nt tried on a field though. Do you use the Visible property? Try the Enable property.Best regards / Venlig hilsen
Johannes Sebastian
MB7-840,MB7-8410
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 250 Dynamics CRM
- 102 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
