project QadFinancials > class BLayerType > method InitInstance

Description

This method can be extended with code to execute when an instance of a business class is started.

PreCondition

This method is executed when a new instance of the business class is started, or when a draft instance is opened (in that case a new instance is started which is a copy of the draft instance).


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program/blayertype.p)

<ANCESTOR-CODE>
/*initialization of LayerTypeCode's constants - public data items*/
assign vcOFFICIAL                = trim("Official":U)
       vcMANAGEMENT              = trim("Management":U)
       vcTRANSIENT               = trim("Transient":U)
       vcOfficialTr              = trim(#T-1'Official':40(2783)t-1#)
       vcManagementTr            = trim(#T-2'Statutory':40(2784)t-2#)
       vcTransientTr             = trim(#T-3'Transient':40(2785)t-3#)
       vcListLayerTypeCode       = vcOFFICIAL   + chr(2) +
                                   vcMANAGEMENT + chr(2) +
                                   vcTRANSIENT
       vcListLayerTypeTranslated = vcOfficialTr   + chr(2) +
                                   vcManagementTr + chr(2) +
                                   vcTransientTr
       vcListLayerTypePair       = vcOfficialTr   + chr(2) + vcOFFICIAL   + chr(2) +
                                   vcManagementTr + chr(2) + vcMANAGEMENT + chr(2) +
                                   vcTransientTr  + chr(2) + vcTRANSIENT.