validation procedure
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. |
| icJournalType | input | character | JournalType |
| ilActive | input | logical | |
| oiReturnStatus | output | integer | Return status of the method. |
Internal usage
QadFinancials
program code (program4/bddocumentstatus.p)
if icJournalType <> {&JOURNALTYPE-DEBTORPAYMENT}
then do:
<M-1 run SetMessage
(input trim(#T-2'The daybook must be of type '$1'.':250(1668)T-2#) (icMessage),
input {&JOURNALTYPE-DEBTORPAYMENT-TR} (icArguments),
input icTargetFieldName (icFieldName),
input string(iiTargetField) (icFieldValue),
input 'E':U (icType),
input 3 (iiSeverity),
input icRowid (icRowid),
input 'QADFIN-2537':U (icFcMsgNumber),
input '' (icFcExplanation),
input '' (icFcIdentification),
input '' (icFcContext),
output viFcReturnSuper (oiReturnStatus)) in BDDocumentStatus>
assign oiReturnStatus = -1.
end.
if not ilActive
then do:
<M-3 run SetMessage
(input trim(#T-3'You can only specify active daybooks.':250(14941)t-3#) (icMessage),
input '':U (icArguments),
input icTargetFieldName (icFieldName),
input string(iiTargetField) (icFieldValue),
input 'E':U (icType),
input 3 (iiSeverity),
input icRowid (icRowid),
input 'QADFIN-3527':U (icFcMsgNumber),
input '':U (icFcExplanation),
input '':U (icFcIdentification),
input '':U (icFcContext),
output viFcReturnSuper (oiReturnStatus)) in BDDocumentStatus>
assign oiReturnStatus = -1.
end.