Is it possible to change Visible property in pages?

apanko
Member Posts: 70
Hello.
I've created the page Customer List (No, Descr, Address).
I want to hide/show the "Address" column dynamically.
I've created global variable bVisible (type=bool, IncludeInDataset=Yes)
and set the value of property "Visible" to bVisible (this is property of element Address).
When page is opening - everything is correct (If I put "bVisible:=true;" in the trigger OnOpenPage() then column is visible, if I put nothing there, "Address" is invisible).
But if I change value of bVisible (with actions or just click checkbox) notihng happens.
When I tried to use CurrPage.Address.Visible(bVisible), I got error: The VISIBLE() method is obsolete.
Have I missed something or it is impossible?
I've created the page Customer List (No, Descr, Address).
I want to hide/show the "Address" column dynamically.
I've created global variable bVisible (type=bool, IncludeInDataset=Yes)
and set the value of property "Visible" to bVisible (this is property of element Address).
When page is opening - everything is correct (If I put "bVisible:=true;" in the trigger OnOpenPage() then column is visible, if I put nothing there, "Address" is invisible).
But if I change value of bVisible (with actions or just click checkbox) notihng happens.
When I tried to use CurrPage.Address.Visible(bVisible), I got error: The VISIBLE() method is obsolete.
Have I missed something or it is impossible?
0
Comments
-
From what I read (cant remember where). I dont think this is possible with role tailored client. I dont think you can use visible.
Hope someone can prove me wrong.0 -
In RoleTailored client, the visibility property is supported on Groups and Parts. For controls only the OnInit and OnOpen triggers are supported.
Regards,
ClausClaus Lundstrøm | MVP | Senior Product Manager | Continia.com
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)0 -
Thank you, Claus.0
-
clausl wrote:In RoleTailored client, the visibility property is supported on Groups and Parts. For controls only the OnInit and OnOpen triggers are supported.
Page 9231 Items by Location Matrix
Why function SetVisible() is triggered for every record (onAfterGetRecord) if the visiblity property for controls is supported only for OnInit and for OnOpenPage triggers?
IMHO SetVisible should be in the OnOpenPage trigger.
This way we can avoid superfluous calls. And this one call will be effective.
The same is true for the form 9231. It works correct, but I'm not sure that function SetVisible should be called for every record. The number of columns is same for all records, so it is possible to set the visiblity property once - at the onOpenForm trigger.
Andrey0
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