The Edict tab is used to set the edict ($Edict) action of notes, adornments and agents.
The main input box is used for adding or editing the action code. Pressing the Return key (↩) commits any changes made and runs (or updates) the query. The code box has auto-completion for action code and attribute names (based on using a $-prefix). The code box supports syntax colouring.
From v9.1.0, code fields no longer select the entire text after when gaining focus or after pressing the Return key (↩) to update (save changes). This lessens the chance of accidental deletion of existing code.
Inheritance state. A caption above and right of the code box indicates the inheritance state of the edict. Captions are:
- default. Uses document default.
- inherited. Uses an inherited (prototype) value.
- (no caption). The edict is set locally in the note.
Enabled. This toggles disabling of the edict ($EdictDisabled). When un-ticked the edict's code is not evaluated as part of the rule cycle.
Run Now button. This runs the edict immediately, once: the edict is added as a single task to the pending work queue. If the edict is disabled, this button is disabled. The button also updates the Displayed Attributes table.