ReportCacheError - cWebList

Called when a cache error should be reported

Type: Procedure

Parameters: None

Syntax
Procedure ReportCacheError 

Call: Send ReportCacheError


Description

Is called when a cache error should be reported.

By default, it displays the handled error message DFERR_CANT_REFIND_RECORD with the added error text of C_$InvalidRowInCache (in English: "Invalid row in grid cache. Record might have been deleted").

This procedure was created so you can create your own more specific custom errors for your grid classes and objects.

For example:

Procedure ReportCacheError
    Error DFERR_CANT_REFIND_RECORD "A record in your grid was probably deleted by someone else. The grid will refresh itself and all should be find. This is a normal occurrence so don't call us! " 
End_Procedure



It is possible that a cWebList's current row record may be deleted. This can happen with any data entry object (DEO) and grids handle this the same way any DEO handles this. As long as you don't attempt to save or delete the record, no error will be raised. If you attempt to save or delete the record, the DataDictionary object (DDO) will raise a DFERR_CANT_REFIND_RECORD error. Note that errors will not be raised when you navigate back to a view when the DDO records are refreshed. You will only see the error if you attempt to change the record (save or delete).