Visibility for Request page fields

poppins
Member Posts: 647
Hi everyone,
I have a Request page with two fields: One Boolean(XX1) and one Date field(XX2)(both have global variables as sources).
I want the date field to be visible only if I check the boolean field.
I created a global variable isChecked, set the property IncludeInDataset to Yes and wrote the following code in the trigger OnValidate of XX1:
How shall I do?
Thanks in advance
I have a Request page with two fields: One Boolean(XX1) and one Date field(XX2)(both have global variables as sources).
I want the date field to be visible only if I check the boolean field.
I created a global variable isChecked, set the property IncludeInDataset to Yes and wrote the following code in the trigger OnValidate of XX1:
isChecked=XX1;Unfortunately, it is not working.
How shall I do?
Thanks in advance

0
Comments
-
On the date field (XX2) on the request page you need to set the Visible property to isChecked0
-
You could of course avoid the isChecked field altogether by setting the IncludeInDataset property of XX1 to Yes and then setting the Visible property of the date field XX2 to XX10
-
Kishorm wrote:You could of course avoid the isChecked field altogether by setting the IncludeInDataset property of XX1 to Yes and then setting the Visible property of the date field XX2 to XX1
Tried your suggestion but it didn't work.
After running the report, I check XX1 in the request page but XX2 remains invisible...0 -
By the way, I tried the same thing with property Editable of the field and it worked (the date field became editable when I checked the boolean field).
but for property Visible, it is not working0 -
Have you tried putting the fields in a group and making the group visible?
That used to be a workaround in NAV 2009.0 -
Ah yes, I've had similar problems with card pages before. Try using the Enabled property instead then - although not as good as making it invisible it is better than just making it non editable.
P.S. I've not tried Mark's suggestion of using groups - I'll try that out sometime :-)0 -
Had the same problem with field visibility in NAV15. Thank`s, Mark) Don`t understand why, but when using visibility on groops - it works!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