Creating Solutions

Scripting solutions list view in the OpenAir Scripting Center.

Platform solutions are accessed from the Solutions tab of the Scripting Center. Solutions can be created for form, scheduled, and library scripts. Solutions can also be used to create custom fields, script libraries, and script parameters. Solutions are automatically available when form and / or scheduled scripts are enabled, see Scripting Switches.

Solutions are stored in XML files so you can read, transfer, archive, and compare them. Solutions contain a version tag to allow OpenAir to check that the solution file is compatible before applying.

A log is created when a solution is applied to show exactly what the solution created and to record any errors.

Tip:

Add the “Solutions” column on the “Form” or “Scheduled” screens to see which scripts are contained in a solution.

Solution Status

A solution can be in one of three states:

Solutions create a log when they are applied to an account. For ‘Applied’ solutions you can view the log to see which objects (scripts or parameters) the solution created. For ‘Failed’ solutions you can also see the errors that occurred when the solution was applied.

Solution Actions

Solution Status dropdown list showing available actions for a solution that is not applied.

A solution can have the following actions:

To create a solution:

  1. Go to Administration > Scripting Center > Solutions.

  2. Click the global Create button and select Create solution.

  3. Name the solution and give it a title and description. Select the scripts to include in the solution and select any additional parameters or custom fields. Solutions are built from existing active scripts.

  4. Click the > Create link under Documentation URL if you want to link to documentation describing the solution. After the link is created, click the link in the Documentation URL column in the Solutions tab to open the document.

  5. Select which scripts (including Library scripts) the solution will run from the Scripts selection list.

  6. Select which custom fields the solution will create from the Custom fields selection list.

  7. Select which script parameters the solution will create from the Script parameters selection list.

  8. Click Save.

Note:

You only need to select additional custom fields and parameters. When you select a script, the solution will automatically pull in the script’s required libraries and parameters. OpenAir ignores duplicate selections.

To create a platform solution from a single script:

  1. Sign in as an Administrator and go to the Scripting Center.

    Note:

    Make sure you have the necessary switches enabled, see Scripting Switches.

  2. Go to the Form, Scheduled, or Library script you want to create the solution for.

  3. Select the Export solution option from the script status menu.

    Solution Status dropdown list showing available actions for a solution that is active.
    Note:

    You can create a solution for any script that is not ‘Inactive’. See Scripting Workflow.

  4. Enter the name, title, and description for the solution file and SAVE.

Tip:

The solution will contain all library scripts and parameters referenced by the script. To create a solution without a certain reference, first remove the reference from the script and then create the solution.

To apply a platform solution:

  1. Sign in as an Administrator and go to the Solutions tab on the Scripting Center.

    Note:

    Make sure you have the necessary switches enabled, see Scripting Switches.

  2. Select Upload solution from the Create Button.

    Uploading a solution using the create menu.
    Note:

    You are not allowed to upload an invalid solution file.

  3. Select the Apply option from the status menu.

    Solution Status dropdown list showing available actions for a solution that is not applied.