Submit method

Official Content
This documentation is valid for:

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

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


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

      Is the name of the Procedure we want to submit.

      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).


Suppose you have a Web Panel in your Knowledge Base that only has a button included in its form. Its objective is to submit a Procedure which will do some calculations; so, when the user presses that button, the event associated to it is executed. In order to achieve this, the following code inside the event associated to the button has to be defined: 

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

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