project BLF > class Database Component > method ValidateUI

Description

Validate the class temp-tables, when values are created / modified by a user interface class, and sent to the business class as input parameter of a public method, other than SetPublicTables.
When data in the t_s*** tables is correct, it is copied into the t_o***tables.


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


BLF
method database.MaintainByDatasetWithOutput


program code (program1/database.p)

<M-3 run CheckValidationExceptionList
   (input  yes (ilValidateInputData), 
    output vlDoValidate (olDoValidation)) in database>

if vlDoValidate
then do:
    <M-1 run ValidateComponent (Output oiReturnStatus (oiReturnStatus)) in database>
    
    if oiReturnStatus >= 0
    then do:
        <I-2 {bFcRun
                &PARAMETERS = "output viFcReturnSuper"
                &PROCEDURE  = "gipr_SetTables"}>
        if viFcReturnSuper <> 0
        then assign oiReturnStatus = viFcReturnSuper.
    end.
    
    assign vlFcDataValidated = (oiReturnStatus >= 0).
end.
else vlFcDataValidated = yes.