project QadFinancials > class BFRWAnalysisCode > method ValidateComponentPre


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BFRWAnalysisCode.ValidateComponent


program code (program1/bfrwanalysiscode.p)

/* Check if any of the analysis codes are being deleted */
<M-8 run ValidateComponentPreDelete  (output viFcReturnSuper (oiReturnStatus)) in BFRWAnalysisCode>
if viFcReturnSuper < 0 or viFcReturnSuper > 0 and oiReturnStatus = 0 then assign oiReturnStatus = viFcReturnSuper.
if oiReturnStatus < 0 then return.


/* ============================================================================ *
 * Perform the late AddDetailLine as there can be created records on the UI,    *
 * where the execution was skipped because of performance                       *
 * ============================================================================ */
<M-17 run ValidateComponentPreLateAddDetailLine  (output viFcReturnSuper (oiReturnStatus)) in BFRWAnalysisCode>
if viFcReturnSuper < 0 or viFcReturnSuper > 0 and oiReturnStatus = 0 then assign oiReturnStatus = viFcReturnSuper.
if oiReturnStatus < 0 then return.


/* ============================================================================ *
 * Assign values for FRWAnCode + child record                                   *
 * ============================================================================ */
<M-45 run ValidateComponentPreFRWAnCode  (output viFcReturnSuper (oiReturnStatus)) in BFRWAnalysisCode>
if viFcReturnSuper < 0 or viFcReturnSuper > 0 and oiReturnStatus = 0 then assign oiReturnStatus = viFcReturnSuper.