Make a page non-editable nav 2013 r2

Hi all,

I have try to make an entire page to non-editable based on user setup. However, it does not work.

vrecUser.RESET;

IF vrecUser.GET(USERID) THEN BEGIN

IF vrecUser.“Allow Modifiy” = TRUE THEN

CurrPage.EDITABLE := True

ELSE

CurrPage.EDITABLE := False;

END;

Please help.

Where did you write code?

Did you check whether the code is executing after

IF vrecUser.GET(USERID) THEN BEGIN

?

The code is executed at the else statement when I unticked the ‘Allow Modify’ field at the user table. However the CurrPage.editable is not executed.

you could do that on base of user profiles and permissions sets.

add currpage.update;

Where did you write this code?

I tried with CurrPage.EDITABLE(False); in OnOpenPage trigger and working fine.

Hi,

You can also try this using the field properties of table (Development Environment). Set the ‘Editable’ property to ‘No’. Thereby nobody will be able to edit any content of the table/Page.

Hi,

You can try this using the field properties of the master table. Set the ‘Editable’ property to ‘No’ for the required fields and thereby nobody will be able to edit the contents.