ActionCanExecute

This event is triggered before ALM performs an action that has been initiated by the user, to check whether the action can be executed.

You can add code to this event procedure to perform actions when the user has initiated a particular action, or to prevent the action from being executed in specific cases. For example, see Example: Controlling User Permissions.

Syntax

ActionCanExecute(ActionName)

where ActionName is the action that the user has initiated.

Actions are in the format context.action.

Note: The previous format for this event is supported for purposes of backward compatibility. We recommend you use ActionCanExecute instead.

User-defined actions start with the prefix UserDefinedActions.

Type

Function

Returns

True or False

Availability

ActionCanExecute (all modules)

Tip: To obtain the name of an action, see the sample code Action Object.