trap_script_errors

LANSA WAM

trap_script_errors

A Boolean property. An expression which if evaluated to be True will suppress any JavaScript errors.

Default value

true() (that is, JavaScript errors will be suppressed)

Valid values

true(), false() or any valid expression, involving field names, literals, XSL variables or JavaScript variables, which can be resolved to true() or false().

Example

This example will suppress any JavaScript errors if the field #TRAP_ERRS is equal to 'Y'. The expression should be entered, and is shown when the property has focus, as follows:

When the property loses focus, the expression is shown as follows: