Spectre Expressions Editor

The Spectre Expressions Editor is a dialog box that provides assistance for creating and editing expressions in Spectre files anywhere that an expression is allowed.

In the Edit Expression dialog box, you can:

  • Get help with the syntax for a function by starting to enter the name—a pop-up window lists potential functions.
  • Display documentation in the Documentation pane by placing the cursor within a tag in the Source pane. This feature facilitates accessing the documentation for nested functions.
  • View the Available Columns in this data set. Double-click a column to include it in your expression. (The available columns display only in the Spectre Build Script editor.)
  • Write or edit an expression. You can use keyboard shortcuts.
    NOTE: As you work in the Source field, you can use Ctrl+Space to display a list of available tags. For more information about getting help while editing, see Syntax-Aware Text Editor.
  • See any syntax errors or any other errors regarding functions.

Access from the Text Editor

To open the Expressions Editor in a Text Editor tab when working with a script such as a cPlan or Spectre Build:

  1. Enter a line with a tag that uses an expression.

  2. Click anywhere between the open and close backticks that contain the expression.

    A small red box appears at the end of the expression. The pointer turns into a hand icon when you move the cursor over the red box.

    Click box at end of expression

  3. Click the small red box under the close backtick mark.

    The ClosedEdit Expression window opens, and you can fine-tune the expression.

    TIP: Alternatively, you can use the F2 keyboard shortcut key to open the Spectre Expressions Editor window when the cursor is within the open and close backtick marks.

Access from the Spectre Build GUI

To open the Expressions Editor in the Spectre Build GUI editor:

  1. Create a new Calculated Column by clicking in the Name column of the Calculated Columns pane and entering a name.

  2. Click the Pencil icon in the Edit Definition column in the Calculated Columns pane.

    Build Calculated Columns Pencil
    The ClosedEdit Expression window opens, and you can enter and fine-tune the expression.

    Expression Editor

See also: