2.6 Protecting a Viewsheet from Script Errors

Because scripts are executed when the Viewsheet is generated on the server, a script error can cause Viewsheet generation to fail. To prevent this from happening, you should wrap error-prone code inside a “try-catch” block, which allows you to trap errors before they affect Viewsheet execution. See Appendix JS.10.4, The 'try-catch' Statement, for more information.

See Also

Debugging a Viewsheet Script, for information on locating errors.

<< 2.5.4 Formatting a Date © 1996-2013 InetSoft Technology Corporation (v11.4) 2.7 Debugging a Viewsheet Script >>