project QadFinancials > class BMfgEndUserControl > method Createeuc_ctrl

Description

Initialize a new record in class table teuc_ctrl.


Parameters


ic_ParentRowidinputcharacter= teuc_ctrl.tc_ParentRowid
BMfgEndUserControloutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgendusercontrol.p)

    assign oiReturnStatus = -98.

    empty temp-table t_seuc_ctrl.
    empty temp-table t_sCustomTable0.
    empty temp-table t_sCustomTable1.
    empty temp-table t_sCustomTable2.
    create teuc_ctrl.
    assign teuc_ctrl.tc_Rowid  = dynamic-function("GetNumberForNew":U in {&TARGETPROCEDURE})
           teuc_ctrl.tc_Status = "N":U.
    { includes/bfcrun.i
      &procedure  = "InitialValues"
      &parameters = "input 'euc_ctrl':U,
                     output oiReturnStatus" }

    create t_seuc_ctrl.
    raw-transfer teuc_ctrl to t_seuc_ctrl.