Functional Description
B0500120 - Clear Timecard, Check Control or DBA Summary Cache
Purpose
The purpose of this function is to clear any one of the following caches when the unique cache name 
is passed: Timecard Cache, Check Control Cache or DBA Summary Cache.
Setup Notes and Prerequisites
Any cache that needs to be cleared, must have already been created prior to running this function.
Special Logic
All 3 parameters MUST be passed regardless of which cache/s is to be cleard.  Valid values are:
 
szTimecardCacheName = 
                      "blanks"             --> tells function to ignore
szCheckControlCacheName = 
                          "blanks"             --> ignore
szDBASummaryCacheName = 
                        "blanks"               --> ignore 
Technical Specification
Parameters: (D0500120)
Data Structure Description Data ItemI/ORequired
szTimecardCacheNamePIDIY   
szCheckControlCacheNamePIDIY 
szDBASummaryCacheNamePIDIY
This function uses the API "IsStringBlank" to determine if requested cache is to be cleared:
If (IsStringBlank(lpDS->szTimecardCacheName) == FALSE)
 Initialize Data Structure
 Initialize Cache Index
 Set up Index to Timecard Cache
 Get Cache Handle
 Clear Timecard Cache
 Terminate Cache handle
End If
If (IsStringBlank(lpDS->szCheckControlCacheName) == FALSE)
 Initialize Data Structure
 Initialize Cache Index
 Set up Index to Timecard Cache
 Get Cache Handle
 Clear Timecard Cache
 Terminate Cache handle
End If
If (IsStringBlank(lpDS->szDBASummaryCacheName) == FALSE)
 Initialize Data Structure
 Initialize Cache Index
 Set up Index to Timecard Cache
 Get Cache Handle
 Clear Timecard Cache
 Terminate Cache handle
End If
^
D0500120 - DS to Clear Timecard, Check Control, DBA Cache
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | 
|---|---|---|---|---|
| szTimecardCacheName | PID | char | OPT | NONE | 
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
  | ||||
| szCheckControlCacheName | PID | char | OPT | NONE | 
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
  | ||||
| szDBASummaryCacheName | PID | char | OPT | NONE | 
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
  | ||||
| B0700003 Create PrePayroll Caches | 
| None |