2018.1

Table Of Contents
l
Expand: Click to convert the script generator to a regular script. Note that this action is not
reversible once the regular script has been saved.
l
Apply: Saves changes made to the script and applies the changes in the template
without closing the dialog.
Expanded Script window
When expanded, the Script window replaces all parts of the wizard below the Selector by a box
in which the script can be typed. See "Writing your own scripts" on page689.
For an overview of keyboard shurtcuts that can be used in this script editor, see "Keyboard
shortcuts" on page816.
Chart Script dialog
The Chart Script dialog specifies which variable data will be displayed in a chart and shows a
preview of both the chart (on the right hand side) and the data (at the bottom). This dialog is one
of the parts of the Insert Chart wizards. It can be reopened by double-clicking the relevant script
in the Scripts pane.
For more information about charts, see: "Business graphics" on page574.
These are the options in the Chart Script dialog:
l
Name: The name of the script, making it easier to identify it.
l
Selector: The Selector or Text to apply the script to.
l
Selector: Uses CSS selectors to find the element to which the script applies. (See
also: "Selectors in Connect" on page726.)
l
Text: Uses text as a trigger for the script. The script applies to all instances of the
text found in the template.
l
Selector and Text: Uses text within the specified Selector as a trigger for the script.
l
Input Type: Use the drop-down to select the source of the data to add to the Chart.
l
Data fields: Select to use fields at the record level in the Data Model.
l
Data table: Select to use fields in a detail table. At least one detail table must be
available in the Data Model Pane for this option to be functional.
Page 795