Write Script Worksheet
The Write Script Worksheet enables you to write ProcScript and JavaScript, and to edit objects shown in the Structure.
- In the Entity Editor, you can write generic ProcScript for controlling data I/O or common application behavior.
- In the Component Editor, you can code component-specific behavior for the component and its entities, occurrences, and fields.
- In Library editors, you can define IncludeScript and Global ProcScript modules and Snippets.
The code that is ultimately compiled in a component may come from several sources:
- Locally-defined script written in the code containers of the component and its entities and fields
- Inherited script, defined in modeled entities and fields used by the component
- Generated script, coming from IncludeScript that is resolved during compilation
Tools
- Resource Browser—depending on the editor, you add objects to the Structure using the Templates and Model tabs, or copy code from the Snippets tab.
- Script Editor—enables you to navigate to and edit up to two code containers simultaneously.
- Compiled Modules Inspector—provides a summary of the ProcScript modules for the selected object after compilation, and enables you to navigate to the module declaration, whether it is inherited, generated, or locally-defined.