1.Functional Description
1.1Purpose
This function will do the following:
Store Asset number from the Grid Row record fetched.
Read one record from the cache.
Read records sequentially from cache.
Destroy the cache.
1.2Setup Notes and Prerequisites
When using this function, it is important to always call the function in mode 4 to destroy the cache
when exiting an application where this is used.
1.3Special Logic
When using this function, the following parameters are important:
Mode:
1 = Read one record from cache.
2 = Read records sequentially from cache.
3 = Add to cache.
4 = Destroy the cache.
Asset Number:
This Grid field is used to pass in a Asset number to be added to the cache, or to retrieve a Asset
number that is stored in the cache.
Errors:
1 = Error
0 = No Error
IdhCursor:
Use this parameter to store the cursor when reading the cache sequentially. Pass the value into and
outof the cache to read the records.
Cache Name:
Use this field to hold the unique cache name that is created by the business function. This name is
used to reference the stored values in the cache.
D1300690 - Cache Process Asset Number
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cMode | EV01 | char | REQ | INPUT |
This parameter is used to determine what is done by the cache. The modes and their respective functions are as
| ||||
mnAssetItemNumber | NUMB | MATH_NUMERIC | OPT | NONE |
This parameter is the unique key to update the PM status. It is either added to or fetched from the cache.
| ||||
cErrorCode | EV01 | char | OPT | NONE |
This parameter holds the error value. The following are possible values: | ||||
idhCursor | GENLNG | ID | OPT | NONE |
This parameter holds the cache cursor. This field is used to pass the stored cursor back and forth when reading the
| ||||
szCacheName_VC30A | VC30A | char | REQ | BOTH |
This parameter holds the unique cache name that is created from the business function. This name is used to access
|
None |
None |