Visible property: Page class

Description

Use this property to set the visibility of a page. If this property is set to True, the page is visible. If this property is set to False, the page is not visible. When the visibility is changed, the component tabs and menus are also automatically changed to reflect the new settings. Menus and tabs return to their original values when the user navigates to another component. In addition, if a page is set to be hidden in the component definition, you can change the value of the page to be visible at runtime.

Oracle recommends using the PreBuild event if you need to hide the current page.

Important:

If the visibility of the current page is set to False in a PeopleCode program, then you must invoke the TransferPage function to transfer control to a visible page.

Note:

Page visibility alone (as set by the Visible property) does not determine whether a user can see a page. Visibility plus the permissions to access the page together determine whether a specific page is displayed to a particular user.

Example

In the following example, a page is hidden based on the value of the current field.

If PAYROLE_TYPE = "Global" Then
   PAGE.JOB_EARNINGS.Visible = False;
End-If;