Procedure HandleCacheError
Call: | Send HandleCacheError |
This method is called when the grid cannot find a cached record on the back end. This is used to handle the error. It normally reports a handled error.
If pbSuppressCacheError is set to True, no error is reported. When pbSuppressCacheError is set to False (the default), it will call the method ReportCacheError, which raises the handled DFERR_CANT_REFIND_RECORD error.
Next, this method will attempt to refresh the grid's cache based around the current record. Note that the cache error usually occurs when navigating from a valid current record to some other record. If the grid cannot be refreshed around the current record, it refreshes the grid from the top.
This method can be augmented or overridden, but you must make sure that any customization handles the error and refreshes the grid with valid records. If you are going to augment or override this method, you are encouraged to first study the code in the package.