Designing a Script

To start designing a script, click Design in the list of scripts.

Adding a Control

To add a control to a script, click and drag the control to an empty script box.

Note: New empty script boxes are created when you define the exit conditions for a control (using the Exit condition(s) property). Each exit condition represents one branch that the script can take.

Editing a Control’s Properties

To edit a control’s properties, follow these steps:

  1. Click Script menu and then Properties. The Control properties section shows.
  2. Edit the control’s properties as required. For a description of each property, see Script Controls.
  3. Click Save.

Viewing a Data Entry Element / Subscript

You can open any data entry element or subscript that a script uses to view and/or edit it. To do this, from the Control properties section, click View.

Collapsing/Expanding a Branch

When you’re working on a script, you may only be interested in a particular part of it. To hide a script branch that you’re not interested in, click Collapse script exit condition.

For each control, Syntelate XA shows whether any script branches have been collapsed and, if so, how many: Expand collapsed script branch.

To expand a script branch again, click this. Where more than one script branch has been collapsed, Syntelate XA will ask which branch you’d like to expand.

Screenshot of expanding a script branch

To quickly expand all collapsed branches in a script, click Expand all.

Inserting/Replacing a Control

You can:

  • Insert a new control before an existing control.
  • Replace an existing control with a different type of control.

To do this, drag the new control onto the existing control. The Insert/Replace Control dialog box appears. Select whether you want to insert a new control or replace the existing control, and then click Confirm.

Note: A Jump point or Stopbox can only replace an existing control. This will delete any controls below the existing control.

Deleting a Control

To delete a control, click Script menu and then Delete. A dialog box shows.

If the control has exit conditions, you’ll have the option to:

  • Delete the control and everything below it.
  • Delete the control but retain a particular branch.

If you retain a branch, this branch will move up in the script to take the place of the deleted control.

Note: You can also delete entire branches by deleting exit conditions in a control’s properties.

Zooming

To zoom in or out of a script, use the size slider.

The size slider in the Script Designer

Publishing/Previewing

Any changes that you make to a script are not reflected at runtime until you publish the script.

Perhaps you’re not ready to publish the script for runtime but just want to preview how it’ll look. Syntelate XA allows you to do this too.

Note: To publish or preview a script, the script must be part of a desktop.

Publishing a desktop automatically publishes any scripts (and data entry elements) that the desktop uses.

To publish or preview a script, follow these steps:

  1. Click Publish. The Publish dialog box appears.
  2. Select whether to preview the script or to publish it.
  3. If previewing the script, select the desktop that you’d like to preview.
  4. Click Publish.

If any controls are missing required properties, an error message is shown. Fix these controls, and then click Publish again.