project BLF > class Cacher > method GetIntegerValueFromSession

Description

Return a cached session dependent integer value, based on the name that is passed as input parameter.


Parameters


iiSessionIdinputintegerThe unique ID of the session this method needs to use to retrieve the correct value of an session dependent cached data item.
icDataItemNameinputcharacterThe name of the session dependent cached integer type item for which the value needs to be returned.
oiValueoutputintegerThe value of the cached session dependent integer data item with the name specified in icDataItemName.
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


BLF
method BReportComm.InitInstance
method TDaemonUtility.StartDaemon
method Transaction.InitInstance

QadFinancials
method business.GetExchangeRate
method BAPMatching.InitInstance
method BBankEntry.GetPossibleAllocationsCInvoiceCrossCy
method BBankEntry.GetPossibleAllocationsDInvoiceCrossCy
method BCDocument.ValidateComponentPreInvXref
method BCInvoice.InitInstance
method BCOAMask.InitInstance
method BCOAMask.ReadSetupForCompany
method BCostCentre.ApiSelectCostCentreCOAMask
method BCostCentre.CalcAllSelectCostCentre
method BCostCentre.CalcAllSelectCostCentreForCOAMaskAll
method BCreditor.PostValidateComponent
method BDCollection.RetrievePaySelInitial
method BDDocument.ValidateComponentPreInvXrefDI
method BDInvoiceJournalEntry.ApiStdMaintainTTDefValExtPost
method BDivision.ApiSelectDivisionCOAMask
method BDivision.CalcAllSelectDivision
method BDivision.CalcAllSelectDivisionForCOAMaskAll
method BDomain.SetStatutoryCurrency
method BDPaymentSelection.AdditionalUpdatesDCollection
method BERSProcessor.UIInit
method BMassLayerTransfer.ApiExecuteLayerTransferV01
method BMassLayerTransfer.PeriodicCostingModuleIsActive
method BMfgCustomer.PostSave
method BPeriod.MultiCompanyVerifications
method BPeriod.PeriodicCostingModuleIsActive
method BProject.ApiSelectProjectCOAMask
method BProject.CalcAllSelectProject
method BProject.CalcAllSelectProjectForCOAMaskAll
method PGTM.InitInstance
method PLicense.ValidateProgramLicense
method PMfgProNrmApi.ValidateShippingNumbers
method PMFGProfile.InitInstance


program code (program1/cacher.p)

<M-4 run UpdateSessionData (input  iiSessionId (iiSessionId), 
                            output oiReturnStatus (oiReturnStatus)) in Cacher>
if oiReturnStatus <> 0 then return.

find tCachedData where
     tCachedData.tcName = icDataItemName and
     tCachedData.tcDataType = "i"
     no-error.
if available tCachedData
then assign oiValue = tCachedData.tiIntValue.
else assign oiValue = ?.