Managing Scripts

This section provides general topics for working with custom scripts.

Topics:

Adding a Script

Scripts allow you to make specific changes to your database based on the event that occurs. For each pre-defined and enabled event, you can determine the script that you want to run for that event. In addition to associating standard scripts with standard events, you can write custom scripts that you want to assign to certain events.

To add a new script

  1. Choose AA Classic > Admin Tools > Events > Script.

    Civic Platform displays the Scripts search window.

  2. Click Submit to see a list of scripts enabled for your agency.

  3. Click Add.

    Civic Platform displays the Add a new script page.



  4. Complete the necessary fields as described in Script Details.

  5. Click Add.

    Table 1. Script Details
    Script Code Enter the code or abbreviation that identifies the script.
    Script Title Enter the name or title of the script.
    Script Initializer If the script requires an initializer, enter it here. The initializer may be necessary to start certain scripts and contain certain input parameters.
    Script Content/Text Enter the script text here. You can also copy and paste the script into this text area.

Searching for a Script

You can search for a script to view or edit it.

To search for a script

  1. Choose AA Classic > Admin Tools > Events > Script.

  2. Complete the necessary fields as described in Script Details.

  3. Click Submit.

  4. Click the red dot that appears to the left of the script that you want.

Editing a Script

For each pre-defined and enabled event, you can determine the script that you want to run for that event. Accela provides several standard scripts. In addition to writing original scripts, you can modify standard scripts. You can make changes to any existing script that is currently on your system.

To edit a script

  1. Choose Administrator Tools > Events > Script.

  2. Search for the script that you want.

  3. Complete the necessary fields as described in Script Details.

  4. If you want to test the script, click the Script Test button.

  5. Click Save.

Deleting a Script

You can delete any script.

To delete a script

  1. Choose Administrator Tools > Events > Script.

  2. Search for the script that you want.

  3. Click Delete.

  4. Click OK to confirm your choice.