project BLF > class Cacher > method GetCharacterValueFromSession

Description

Return a cached session dependent character 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 character type item for which the value needs to be returned.
ocValueoutputcharacterThe value of the cached session dependent character data item with the name specified in icDataItemName.
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


BLF
method BReportComm.InitInstance
method PMfgPro.CallService
method Progress.SetAuditContext
method PTimeZone.getCurrentTimeZoneOffset
method Transaction.ExitInstance

QadFinancials
method PMfgProGetMfgProVersion.GetMfgProVersion


program code (program1/cacher.p)

<M-3 run UpdateSessionData (input  iiSessionId (iiSessionId), 
                            output oiReturnStatus (oiReturnStatus)) in Cacher>
if oiReturnStatus <> 0 then return.
     
find tCachedData where
     tCachedData.tcName = icDataItemName and
     tCachedData.tcDataType = "c"
     no-error.
if available tCachedData
then assign ocValue = tCachedData.tcCharValue.
else assign ocValue = ?.