DisplayOnly property: Page class
Description
Use this property to make a page display-only, or to enable a page so the fields can be edited. This property takes a Boolean value: True if the page is display-only, False otherwise.
Note:
You cannot enable or disable the current page.
The value of DisplayOnly for a page is restored to the value set in Application Designer when the user goes to another component. This means you must set DisplayOnly for the page each time a component is accessed.
This property is read/write.
Example
If &MYPAGE.DisplayOnly Then
&MYPAGE.Visible = True;
Else
&MYPAGE.Visible = False;
End-If;