project BLF > class BFcSession > method CreatefcSession

Description

Initialize a new record in class table tfcSession.


Parameters


ic_ParentRowidinputcharacter= tfcSession.tc_ParentRowid
BFcSessionoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bfcsession.p)

    assign oiReturnStatus = -98.

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

    create t_sfcSession.
    raw-transfer tfcSession to t_sfcSession.