project BLF > class Cacher > method GetDateValueFromSession

Description

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


Internal usage


unused


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 = "t"
     no-error.
if available tCachedData
then assign otValue = tCachedData.ttDateValue.
else assign otValue = ?.