IsIScriptAuthorized
Mon 01 January 2018Syntax
IsIScriptAuthorized(RECORD_NAME,FIELD_NAME, Event_Name, Function_Name[, action])
Description
The IsIScriptAuthorized function returns a Boolean value indicating whether the current user is allowed to access the specified iScript.
Note: The PeopleSoft Administrator role implicitly has access to all iScripts; therefore, this function always returns True for users with this role.
Parameters
Field or Control |
Definition |
---|---|
RECORD_NAME |
Specify the WEBLIB derived/work record name that contains the target iScript as a String value. |
FIELD_NAME |
Specify the field name that contains the target iScript as a String value. |
Event_Name |
Specify the PeopleCode event name as a String value. |
Function_Name |
Specify the user-defined PeopleCode function to be executed as a String value. |
action |
Specify the empty string, "", for the action parameter. This parameter is not used and any other value is ignored. |
Returns
A Boolean value: True if the user is authorized to execute the iScript, False otherwise.