project BLF > class Database Component > method Calculate

Description

Add code here to initialize the calculated fields of the class temp-tables after loading existing records from the application database.


Parameters


oiReturnStatusoutputinteger


Internal usage


BLF
method database.DataLoad
method BDocumentLink.SaveDocumentList
method BResource.ApiLinkResource

QadFinancials
method BExpenseNote.MyDataLoad
method BFixedAssetDepreciation.ConvertIdToCode
method BPosting.MassReversePeriodicCostingPostings
method BPosting.MyDataLoad
method BPostingHist.UpdatePostingHistDataLoad
method BRevaluation.RevaluationPostDataLoad


program code (program1/database.p)

<I-1 {bFcRun
            &PARAMETERS = "output viFcReturnSuper"
            &PROCEDURE  = "gipr_LoadRelatedBusinessFields"}>
if viFcReturnSuper <> 0
then assign oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper < 0
then return.

/* ================================================================= */
/* Adds BTranslation to the transaction and loads translations.      */
/* ================================================================= */
if not vcFcComponentName begins "BCustom["
and (vlInitializeTranslations or can-find (first t_sTransString))
then do:
    <I-28 {bFcRun
         &PARAMETERS           = "input vlInitializeTranslations, output vifcreturnSuper"
         &PROCEDURE            = "gipr_TranslationsLoad"}>
    if viFcReturnSuper <> 0
    then oiReturnStatus = viFcReturnSuper.
    if viFcReturnSuper < 0
    then return.
end. /* if not vcFcComponentName begins "BCustom[" */