project BLF > class Cacher > method GetDecimalValueFromSession
Description
Return a cached session dependent decimal 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 decimal type item for which the value needs to be returned. |
odValue | output | decimal | 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 = "d"
no-error.
if available tCachedData
then assign odValue = tCachedData.tdDecValue.
else assign odValue = ?.