validation procedure
Description
The maximum number of instances can not be > 1.
Parameters
iiTargetField | input | integer | Value of the business field to validate. |
icTargetFieldName | input | character | Name of the business field to validate. |
icRowid | input | character | Contents of field tc_Rowid, if the target field is a field of a component temp-table. |
icDaemonName | input | character | |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
QadFinancials
program code (program4/bbudgetdaemon.p)
if icDaemonName = {&BUDGETDAEMON} and iiTargetField > 1
then do:
assign vcMessage = trim(#T-2'You can only run one Budget daemon process.':255(69456)t-2#)
oiReturnStatus = -1.
<M-1 run SetMessage
(input vcMessage (icMessage),
input '':U (icArguments),
input icTargetFieldName (icFieldName),
input string(iitargetField) (icFieldValue),
input 'E':U (icType),
input 3 (iiSeverity),
input icRowid (icRowid),
input 'QadFin-8100':U (icFcMsgNumber),
input '':U (icFcExplanation),
input '':U (icFcIdentification),
input '':U (icFcContext),
output viFcReturnSuper (oiReturnStatus)) in BBudgetDaemon>
end. /* if icDaemonName = {&BUDGETDAEMON} and integer(icTargetField) > 1 */