pValidateAction
pValidateAction
Validates an action.
Syntax
pValidateAction ( out vlStatus,
inout vlAction,
in vlWindowName,
in vlView,
in vlState,
in vlModified,
inout vlNewView,
inout vlNewState,
out vlValidAction )
Parameters
vlStatus | The returned status from pValidateAction. |
vlAction | The “action”. |
vlWindowName | The name of the current window. |
vlView | The view of the current window. |
vlState | The state of the current window. |
vlModified | The modified state ($True if the window data has been modified; $False otherwise). |
vlNewView | The new view that the window should enter. This value is returned from pValidateAction. This value is returned only for valid actions. |
vlNewState | The new state that the window should enter. This value is returned from pValidateAction. This value is returned only for valid actions. |
vlValidAction | Returned as either $False (the action is not valid) or $True (the action is valid). |
Comments
The pValidateAction command validates an action using the rules contained in the EntitySet ObjectActions. Entries in ObjectAction define a state machine for certain types of processing. The pValidateAction command
- determines if an action is valid in the processes current state/view.
- if it is valid, it determines what the new state/view should be.
- automatically causes data save or discard actions to be performed first if necessary.
Uses