Submit method

Official Content
This documentation is valid for:

Note: The Client WebSession is not available in the submit procedure.

Executes a Procedure object asynchronously; the main program flow will continue processing immediately.

Syntax

ObjectName.Submit(submit-parms , [parm1, .... , parN])

Where:

ObjectName
      Is the name of the Procedure we want to submit.

submit-parms
      This parameter is only used in iSeries applications, all other generators will ignore the parameter.

par1, …, parN
      Optional parameters that can be sent to the submitted object with some purpose (and they must be received in the called object by declaring them with the Parm rule).

Examples

Let's suppose we have a Web Panel in our Knowledge Base, that only has a button included in it's form. When the user press the button, the event associated to the button is executed and our objective is to submit a Procedure which will do some calculations. So, we define the following code inside the event associated to the button, in order to achieve our objective:

Event 'Calculate Payroll Tax'
    CalculatePayrollTax.Submit("", &startDate, &endDate)
EndEvent

The Procedure CalculatePayrollTax will be submitted and the program execution will return immediately to the called object.

See also

Submit rule
iSeries Submit considerations
VB Submit considerations