OnNavigateBackRefindError - cWebView

Sent when OnNavigateBack fails because it cannot refind a DDO record

Type: Event

Parameters: Handle hoDD Integer eReason

ParameterDescription
hoDDThe DataDictionary Object (DDO) handle that failed
eReasonThe refind error type (retCannotRereadMain or retCannotRereadConstrainingParent)


Syntax
Procedure OnNavigateBackRefindError Handle hoDD Integer eReason

Description

When a refind record error occurs during Back Navigation, the event OnNavigateBackRefindError is called instead of OnNavigateBack.

By default, it calls OnRefindRecordError, followed by NavigateCancel, which will close the view.

OnNavigateBackRefindError can be used to customize the handling of this. This is called after the navigate back process is complete, so you can do whatever you want. Realistically errors will rarely occur and customizing the error handling is pretty complicated but it is there if you want it. You know which DDO failed and you know if this was a constraining parent or the main DD that failed.

If you are debugging, a possible refind record error you should start by setting the pbShowAllRefindErrors property to True. You may also wish to place a breakpoint on the OnRefindRecordError event.