Change Page Editable Property

ecriss15
Member Posts: 14
I have the following problem: in a customized form I have two buttons : editable and non-editable which change the form editable property. I need to transform this form to a page but the buttons don't work. I tried using a variable but it seems that the page remains with the initial value of the property editable, no matter what I do. I remember seeing in a video from partnersource regarding tranformation tool that you should set the variable used in the OnOpenPage trigger.
So I would like to know if there is a way or a workaorund that I could change the editable property of a page after it is opened or I need to rethink the functionality. I read other posts about this but I didn't find a clear answer, hope I didn't miss anything.
So I would like to know if there is a way or a workaorund that I could change the editable property of a page after it is opened or I need to rethink the functionality. I read other posts about this but I didn't find a clear answer, hope I didn't miss anything.
0
Comments
-
what code u have in Onpush trigger of those buttons0
-
In the form I have code that changes the editable property of the form, like CurrForm.EDITABLE := TRUE. For the page I added a variable that is included in the dataset and on the buttons I changed the value of this variable. I put this variable in the Editable property of some controls, like group or part and I initialized the value of the variable on OnOpenPage. It takes the right value when I open the form but after that nothing happens no matter what value has the variable.0
-
Hi ecriss15,
There is way that can change the editable property of the button in the page.
Where the code is written to set the button editable or non editable, at that point make the boolean variable true/false depending on condition.
Put that variable name on the editable property of the control.
Remember that when u create the boolean variable in CAL GLOBAL OR LOCAL, please set the IncludeInDataset to YES.
Then and only then u can use that boolean variable into property of the control.
Let me know if there are any other issues.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page0 -
Thank you very much for your answer. This is exactly what I was trying to do, but i modified the Editable property for the entire group, not for every textbox. I tried modifying for every textbox and it works fine. This is kind of tricky because I have many fields on the page and three parts (from the subforms). It doesn't work for the parts either, I think I have to repeat the actions and create them for every part.
In this way, the user who makes the page editable will have to use four actions : one for the page and three for the parts. Do you think there is another way to make the parts editable from the actions of the page (not of the part) ? From what I read so far I don't think it is but I'm new to NAV 2009 and maybe I am wrong.0 -
On a page you have 2 modes, a view-mode and an edit-mode. You can switch between them by selecting them in the actions menu on the page (there are also shortcut keys for them)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