IsMenuItemAuthorized

Mon 01 January 2018

Syntax

IsMenuItemAuthorized(MENUNAME.menuname, BARNAME.barname, ITEMNAME.menuitem_name, PAGE.component_item_name[, action]) 

Description

The IsMenuItemAuthorized function returns True if the current user is allowed to access the specified menu item.

Note: You do not need to use this function to gray internal link pushbuttons/hyperlinks. This function is generally used for transfers that are part of some PeopleCode processing.

Parameters

Field or Control

Definition

menuname

The name of the menu where the page is located, prefixed with the reserved word MENUNAME .

barname

The name of the menu bar where the page is located, prefixed with the reserved word BARNAME .

menu_itemname

The name of the menu item where the page is located, prefixed with the reserved word ITEMNAME .

component_item_name

Specify the component item name of the page to be displayed on top of the component when it displays. The component item name is specified in the component definition. If you specify a page, it must be prefixed with the keyword PAGE . You can also specify a null ("") for this parameter.

action

Specify the action mode in which to start up the page. If action is omitted, the current action is used. Values are:

Constant

Description

%Action_Add

Add

%Action_UpdateDisplay

Update/Display

%Action_UpdateDisplayAll

Update/Display All

%Action_Correction

Correction

%Action_DataEntry

Data Entry

%Action_Prompt

Prompt

Returns

A Boolean value: True if the user is authorized to access the specified page, False otherwise.