JavaScript
afterSavedSearchLoaded
Arguments
- eobject
An object passed to the event that contains the following properties:
- hasErrorboolean
Indicates whether or not an error occurred while loading the saved search.
- errorTextstring
Contains additional information about the error, if any occurred.
Description
Fires after the user loads Search Part criteria that were previously saved.
The example below displays the detailed error message in a message box if an error has occurred. The example below replaces angle brackets (<), newlines (\n), and tabs (\t) in errorText before calling A5.msgBox.show to display the message:
if (e.hasError) { var msg = e.errorText.replace(/</g,"<").replace(/\\n/g,"<br>").replace(/\\t/g," "); A5.msgBox.show("Error Loading Search",msg,"o",function(){}); }