Hi all,
I had a simple query, i want to know is it possible in NAV 2009 SP1 to Change Editable Property of Page during Run Time Based on a field.
Example -
If Status is Released of a sales order the Sales Header Form should be Un-EDITABLE but if the status is OPEN the Sales Header should be Editable.
Let me know if there is any way to do it.
0
Answers
Pass Boolean argument according to your requirement.
Microsoft Dynamics NAV Consultant
Jatin's Blog
Have you checked it?
No it dosen't work. I already tried this before posting the post.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
Is there any way that it is possible ?
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
Create a Global Boolean Variable ex: StatusEditable
Set IncludeInDataset property of variable to Yes
Select Page Tabs ex: General
Set Editable property of tab to StatusEditable
write below code in OnOpenGetRecord trigger of Page
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Please try it to handle in following way.
1) assign value of your control value to a Boolean variable
2) set all the page controls' ( Text boxes) Editable property to this Boolean variable
3) use CurrPage.UPDATE on your control variable's OnValidate
Hi Mohan,
I already tried that but the problem in this solution is that -
If we make tab un-editable only the first tab can be seen other tabs comes as collapsed.
So client will not get agree on same.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
Hi udayrmer,
Is this the only solution?
I know it will work great but as i already added in the post that the form is Sales Header, that means there will be 60 -100 fields in sales header Page. Adding that property on all these fields i don't think that is a appropriate solution.
And what about use will add a new field to the form he had to add the code everytime.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
You or your client have to adjust some where..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav