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
iiSessionId | input | integer | The unique ID of the session this method needs to use to retrieve the correct value of an session dependent cached data item. |
icDataItemName | input | character | The name of the session dependent cached date type item for which the value needs to be returned. |
otValue | output | date | The value of the cached session dependent decimal data item with the name specified in icDataItemName. |
oiReturnStatus | output | integer | Return 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 = ?.