Description
You can access the batch command parameters using the BatchParams object up until the batch command is actually run.
Remarks
Various processes can be run automatically in batches. For general information on running processes in batches, please refer to the help topic batch server in the on-line help. For more information on running processes from scripts, please refer to the IsahObjects Object.
You can enter the batch command that specifies which process should be run when and how often, by clicking the Batch button in the screen of the process that you want to run automatically. Furthermore, you must specify certain parameters for the batch command. For an overview of the relevant parameters for each process, please refer to the Batch parameters tab of the batch command concerned.
The first two parameters, 'BATCHDESCRIPTION' and 'BATCHEXECUTEOBJ', specify which process it concerns. The following parameters such as 'PRODHEADERDOSSIERCODE', 'CALCPRECALC' and 'CALCPOSTCALC' are process specific.
Example
function initializebatch
msgbox
batchparams.getparam "
FROMFINJOURNALDATE
"
batchparams.setparam "
FROMFINJOURNALDATE
", isahdate(-7)
batchparams.setparam "
TOFINJOURNALDATE
", isahdate(-1)
text = "
Start date:
" & isahdatetostr(isahdate(-7)) & vbcrlf
text = text & "
End date:
" & isahdatetostr(isahdate(-1)) & vbcrlf
initializebatch = true
end function
Example
function finalizebatch
finalizebatch = false
end function
In this folder |