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!!
0
Answers
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!
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!