project QadFinancials > class BDInvoice > method ValBLWIGroupId

validation procedure

Description

Validates if the BLWI Group is active


Parameters


iiTargetFieldinputintegerValue of the business field to validate.
icTargetFieldNameinputcharacterName of the business field to validate.
icRowidinputcharacterContents of field tc_Rowid, if the target field is a field of a component temp-table.
ilActiveinputlogicalActive flag
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program5/bdinvoice.p)

if iiTargetField <> 0 and
       not ilActive
    then do:
        assign vcMessage      = trim(#T-2'You can only use active BLWI groups.':150(1235)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-432':U (icFcMsgNumber),
                     input  '' (icFcExplanation),
                     input  '' (icFcIdentification),
                     input  '' (icFcContext),
                     output viFcReturnSuper (oiReturnStatus)) in BDInvoice>
    end.