Develop > Tailoring > Advanced functions > Scripting > Define the scripts

Define the scripts

After diagramming the flow, the next step is to create each panel in the script flow. Be sure to follow the naming conventions for scripts and forms you have established in your script map.

  1. Access a blank script definition record. For more information, seeExecuting scripts.
  2. Complete the definition for the first script in your flow.
    For example, enter the following values:

    FieldValueParameter Values/Conditions
    Namepm.number 
    Starttrue 
    Applicationgetnumb.fc 
    Namerecord
    prompt
    text
    name
    string1
    $script
    number
    string
    Incident Management
    PM
    Next Scriptpm.open.1true

    Note: The value for Start is true, indicating that this is the first panel in the script flow.
    This panel associates a properly incremented incident record number with the data you are going to accumulate from the caller. This panel calls a RAD application only and does not display a form.
  3. Click New to add your panel to the scripts database.
  4. Click Back to return to a blank script definition form.
  5. Complete the definition for the second script in your flow.
    In this example, we would enter the following values:

    FieldValueParameter Values/Conditions
    Namepm.number 
    Formatpm.select.category 
    Skip Displayfalse 
    Bypass Condfalse 
    Next Scriptpm.hw1
    pm.hw2
    category in $script="hw.desktop" or
    category in $script="hw.mainframe"
    category in $script="hw.network"

  6. Click New to add your panel to the scripts database.
  7. Create the remainder of the script definitions in your flow.

In this example, we must create specific definitions for each category (pm.hw1 and pm.hw2) as well as the remainder of the scripts in the common flow (pm.open.2 through pm.open.5). Make sure that each panel except the last panel in the flow has the name of the next panel to execute in the Next Script field.

In this example, panel pm.open.5 displays a form and calls the RAD application apm.edit.problem. This application displays any information you have gathered in an incident record and enables you to abandon the incident or add it to the database.