Parameter | Description |
---|---|
hoDD | The DataDictionary Object (DDO) handle that failed |
eReason | The refind error type (retCannotRereadMain or retCannotRereadConstrainingParent) |
Procedure OnNavigateBackRefindError Handle hoDD Integer eReason
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.