CacheProcessAssetNumber

Cache Process Asset Number

Minor Business Rule

Object Name: B1300690

Parent DLL: CMFG

Location: Client/Server

Language: C

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. 



Data Structure

D1300690 - Cache Process Asset Number

Parameter NameData ItemData TypeReq/OptI/O/Both
cModeEV01charREQINPUT

This parameter is used to determine what is done by the cache. The modes and their respective functions are as 
follows:

1 = Read one record from cache

2 = Read records sequentially from cache

3 = Add to cache

4 = Destroy cache


mnAssetItemNumberNUMBMATH_NUMERICOPTNONE

This parameter is the unique key to update the PM status. It is either added to or fetched from the cache.

cErrorCodeEV01charOPTNONE

This parameter holds the error value. The following are possible values:
1 = Error 

0 = No error


idhCursorGENLNGIDOPTNONE

This parameter holds the cache cursor. This field is used to pass the stored cursor back and forth when reading the 
cache sequentially. 


szCacheName_VC30AVC30AcharREQBOTH

This parameter holds the unique cache name that is created from the business function. This name is used to access 
stored information in the cache.


Related Functions

None

Related Tables

None