project BLF > class BScanDaemon > method ValDraftsEnabled
validation procedure
Parameters
icTargetField | input | character | 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. |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
BLF
program code (program1/bscandaemon.p)
<Q-1 assign vlFcQueryRecordsAvailable = BusActivityPrim (NoCache)
(input 0, (BusActivityID)
input 'BrowseDrafts':U, (BusActivityCode)
input icTargetField, (BusComponentCode)) in BBusinessComponent >
if vlFcQueryRecordsAvailable = no
then do:
<M-2 run SetMessage
(input #T-1'This component is not enabled for drafts.':255(8896)T-1# (icMessage),
input '' (icArguments),
input icTargetFieldName (icFieldName),
input icTargetField (icFieldValue),
input 'E':U (icType),
input 3 (iiSeverity),
input icRowid (icRowid),
input 'BLF-192':U (icFcMsgNumber),
input '' (icFcExplanation),
input '' (icFcIdentification),
input '' (icFcContext),
output viFcReturnSuper (oiReturnStatus)) in BScanDaemon>
assign oiReturnStatus = -1.
return.
end.