project BLF > class BCustomField > method ValidateStoredSearch

validation procedure


Parameters


icTargetFieldinputcharacterValue 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.
iiUsrIdinputinteger
iiRoleIdinputinteger
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


BLF
validation on relation STOREDSEARCHINCUSTOMFIELD


program code (program1/bcustomfield.p)

if iiRoleId <> 0 and
   iiRoleId <> ? or
   iiUsrId  <> 0 and
   iiUsrId  <> ?
then do:
    <M-1 run SetMessage
       (input  trim(#T-1'Only stored searches defined on system level are allowed.':255(733737250)T-1#) (icMessage), 
        input  '' (icArguments), 
        input  icTargetFieldName (icFieldName), 
        input  icTargetField (icFieldValue), 
        input  'E' (icType), 
        input  3 (iiSeverity), 
        input  icRowid (icRowid), 
        input  'BLF-240':U (icFcMsgNumber), 
        input  '' (icFcExplanation), 
        input  '' (icFcIdentification), 
        input  '' (icFcContext), 
        output viFcReturnSuper (oiReturnStatus)) in BCustomField>

    assign oiReturnStatus = -1.
end.