Class ProcessCommand
Object
|
+--ProcessCommand
- class
ProcessCommand
Represents a Process Command.
This class wraps an INPUT type="botton"
or an INPUT type="hidden"
element whose name is
"__pcommand". The wrapped element must reside in a FORM
that ise wrapped by
ProcessForm class
Example:
<input name="__pcommand" type="button" value="Delete"
onclick="if (PMgr.submitProcessForm('ProcessForm1','ExecuteCommand1' ,'Default' ) == false) return false;"
mo:name="ExecuteCommand1" mo:props="requiredBlocks:'ProcessBlock1', validateInput:true" />
The value
and the onclick
attributes are not applicable if the element
type is INPUT type="hidden"
.
In that case the element is just a process command definition and PMgr.submitProcessForm()
call
needs to be triggered by another DHTML event procedure of another element in the page.
Defined in Process.js
Method Summary |
void
|
base(node)
|
isProcessCommand
boolean isProcessCommand
props
Object props
ProcessCommand Properties Object.
requiredBlocks | The names of the blocks (separated with commas) to be
validated before submitting the form with this command |
validateInput | Flag that denotes that Field validations should be executed or not when this
command is given |
confirmMessage | The confirmation message text to be prompted to the user when
this command is given |
beforeSubmitFunc | The name of the javascript function to be called before the
ProcessForm that this command resides in is submitted with this command.
The function receives ProcessForm object and the command name. |
ProcessCommand
ProcessCommand(node)
Parameters:
node
- The DOM node of the HTML HIDDEN element that stores the information about this command
base
void base(node)
Parameters:
node
- the DOM Element node that is wrapped by this object
Copyright 2002 - 2008, MOR YAZILIM
Documentation generated by
JSDoc on Mon Sep 29 14:52:55 2008