RTC CURRPAGE.EDITABLE problem
rocopsa
Member Posts: 38
Dear Experts,
I am developing a page "edit or readonly" function in NAV2017. But, i found that eventhough i have declared CURRPAGE.EDITABLE(varEdit) at OnOpenPage when varEdit is FALSE, the page still can be edit by the "Edit List" in the ribbon.
What else should I do? I want to have the result that those "New", "Edit List", "Delete" in ribbon will be hidden like when i straightly make the page property editable to "No".
Thanks in advance!!
I am developing a page "edit or readonly" function in NAV2017. But, i found that eventhough i have declared CURRPAGE.EDITABLE(varEdit) at OnOpenPage when varEdit is FALSE, the page still can be edit by the "Edit List" in the ribbon.
What else should I do? I want to have the result that those "New", "Edit List", "Delete" in ribbon will be hidden like when i straightly make the page property editable to "No".
Thanks in advance!!
0
Best Answer
-
Dear all,
Solution found! As if I made the variable on all "groups" of the page, then, it will be not editable eventhough the Edit List button appears in ribbon.
Thanks!0
Answers
-
Would like to ask what type of page you wrote your code in?0
-
You can just customize your buttons in RTC by Customizing Ribbon. Hope it helps.0
-
if you want make the page non editable forever change the "Editable page" property to "No" it will automatically hide new ,edit ,delete buttons0
-
Dear batman654,
I would like the editable be variable based on user id and so, make the page forever editable "No" will not be so suitable.
Dear rjbeltran,
Thanks! I tried both Card page and List page but no luck. Codes like this:
On OpenPage
blLSR:=FALSE;
IF GetSecurityRule(CurrPage.OBJECTID(FALSE),1000,blLSR) THEN
CurrPage.EDITABLE(blLSR);
Then, eventhough blLSR keeps on FALSE, the page will not hide those "New"/ "Edit"/ "Delete" and is allowed to be edited.
Any idea?
Thanks all!
0 -
Dear all,
Solution found! As if I made the variable on all "groups" of the page, then, it will be not editable eventhough the Edit List button appears in ribbon.
Thanks!0
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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 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
