OnAfterGetCurrRecord() IF (CurrPage.EDITABLE = FALSE) THEN MESSAGE('some message');Then i instead get an error message saying: "Server page is not open. Page <page name> must close." (<page name> being the previous page that runs the current page)
OnAfterGetCurrRecord() IF (CurrPage.EDITABLE = FALSE) THEN BEGIN MESSAGE(''); MESSAGE('some message'); END;With the empty message sort of "catching" the error, meaning both the error and my message get displayed.
Answers
If a user wants to know why the current record is not editable, use an action that gives the message.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!