project BLF > class BReportVariant > method AdditionalUpdates

Description

This method is part of the SetPublicTables flow.
When executed, data in the input class tables (prefix t_s) is validated and found correct, and copied into the class tables (prefix t_o).
This method can be extended to do updates that do not require a validation or that involve running business methods of other business classes. These classes should be started with ADD-TO-TRANSACTION = 'true'. Also make sure to add these classes in method StopExternalInstances.


Parameters


oiReturnStatusoutputinteger


Internal usage


BLF
method BReportVariant.SetReportCBF


program code (program/breportvariant.p)

<ANCESTOR-CODE>

/* ================================================================= */
/* Make sure at least one variant record exists.                     */
/* (all users / all roles / all companies)                           */
/* ================================================================= */
for each tRptRequest where
         tRptRequest.tc_Status = "N" and
         not can-find (first tRptRequestVariant where
                             tRptRequestVariant.tc_ParentRowid = tRptRequest.tc_Rowid):
    <M-1 run AddDetailLine
       (input  'RptRequestVariant' (icTable), 
        input  tRptRequest.tc_Rowid (icParentRowid), 
        output viFcReturnSuper (oiReturnStatus)) in BReportVariant>
    if viFcReturnSuper <> 0
    then oiReturnStatus = viFcReturnSuper.
    if viFcReturnSuper < 0
    then return.
end.