Editing JavaScript in Dashboard Architect is similar to most editing operations in programs such as UltraEdit, VisualBasic, and Notepad. Use the Dashboard Architect editing window to edit code in an Interactive Reporting document.
The changes made in the editing window are saved to the JS files in the Scripts folder when save is next performed, by clicking , or reloading the document. Code changes are kept in memory and are available to the Interactive Reporting document when event handlers request code through the Debug Server.
The keyboard and buttons behave in familiar ways. These are special features to note.
Syntax is color-coded—Dashboard Architect uses a dictionary of reserved words to control how it applies color to syntax (Color-coding is controlled in Options, select Tools, then Options. Color is applied to text only as it is viewed, and is not stored with text in the JavaScript files. See The Options Dialog Box)
Indentation—Applied to the current and the next line (The number of spaces to add when Tab is pressed is controlled in Options. See The Options Dialog Box)
Shift+Enter and Enter are not identical—Enter terminates a line of JavaScript, whereas Shift+Enter does not terminate a JavaScript statement; it continues it on the next line (Do not use Shift+Enter with breakpoints, because these cannot be set across continuation lines. If breakpoints are added to these lines, JavaScript syntax errors are generated. See Breakpoints)
Back operations—Return to previously visited event handlers (Up to 20 event handlers are kept in the execution stack for back-tracking purposes)
Discontinuity in the undo log—Caused by operations such as Save, Find, Replace, Fire Current Event, Fire StartUp, Reload Document, and navigation to another event handler (After these operations are executed, undo cannot go past them. It is possible to Undo, Cut, Delete, and Paste up until, but not past, a point of discontinuity)