|
AjaxExecutionDef |
|
|
AjaxExecutionDef Element is exactly the same as AjaxCommand element except that there is no command button that triggers the submission, instead you can use any type of element (Image, Text, animated buttons) anywhere in the page to trigger the form submission. Another difference of this element to the AjaxCommand element that this element can also be used outside the process forms if the process list contains only refresh process elements. For all the explanations please refer to AjaxCommand element. There's only one point to consider when assigning values to "Request Parameters" property.
Request Parameters Property No visible HTML element (i.e. Button) is generated for the AjaxExecutionDef element as it is the case for the AjaxCommand element. Therefore it is important in which element the generated call definition is used. For example the this word in "{ID:this.value}" definition represents the HTML element object that the generated call definition is used in, not this action element itself.
Dynamic Call Definition
The copied definition can later be pasted into the event properties of the elements or into the "Embedded Script" properties of the Script elements. %vof(/myAjaxExecutionDef/jscall)
The actual AjaxMgr.submitProcessForm() call is generated during the compiling of the page by expanding the %vof(??/jscall) definition.
Function Call (Minimum Params)
The 'Copy JavaScript Function Call (Minimum Params)" to clipboard' option on the context menu is used for that. When the option is selected, AjaxMgr.submitProcessForm() call definition is formed immediately with the minimum call parameters and copied to the Windows clipboard.
The call definition copied to the clipboard can later be pasted into the event properties of the elements or into the "Embedded Script" properties of the Script elements.
Example:
During compilation a hidden input element is generated for an AjaxExecutionDef element and that element stores beforeSubmitFunc, validateInput, confirmMessage and busyImage properties. If the function call definition is formed with minimum parameters then in the runtime the other parameters are taken from this hidden element.
Function Call (All Params)
The 'Copy JavaScript Function Call (All Params)" to clipboard' option on the context menu is used for that. When the option is selected, AjaxMgr.submitProcessForm() call definition is formed immediately with all the call parameters and copied to the Windows clipboard.
The call definition copied to the clipboard can later be pasted into the event properties of the elements or into the "Embedded Script" properties of the Script elements.
Example:
AjaxMgr.executeAjaxCommand() function call |