Set Command Parameters

After you inserted a command to the script, you probably would have to set it parameters so that the command would perform its specific role in the script. The command parameters can be viewed in the command parameter panel at the lower part of the script canvass

How to set command parameters?

In this example Type text is a command and Text is one of its parameters. The role of the Text parameter is to store the text that Type text sends to the assigned handset.

  1. Highlight the command whose parameters you want to set. The command parameters are listed in the parameter panel
    command_parameters
  2. Highlight the parameter you want to set
    gihlight_parameter
  3. Set the parameter usage type. There are three usage types to choose from in almost every command parameter. You can select between constant, variable or datatable usage types
    set_usage_type
  4. When you set the parameter usage to constant you have to define the constant value or select it, if it's predefined. In our example, the constant value is the URL address: www.google.com
    constant_usage_type
  5. The second usage type is the variable usage type. A variable usage type parameter points to a variable which in turn points to a single interchangeable value. In our example, URL is the variable that was selected for the text parameter. URL points to the URL addresss which is passed to the handset during the script execution
    variable_usage_type
  6. The value of the variable was pre-assigned to the variable by you in the variable side panel. In our example, this is where you assign the value www.google.com to the URL parameter
    variable_value
  7. If the variable was set as a run-time variable in the variable side panel, you can provide its value at the start of the script execution. In our example you type www.google.com in the URL box of the script run-time variable dialog box displayed immediately after clicking Play o execute the script
    runtime_variable
  8. The third parameter usage type is a data table usage type. A command parameter is set to a data table usage type whenever the command is nested in a loop. In every loop iteration the parameter accepts a different value. The values are stored in a data table assigned to the script. In our example, the Text parameter receives a different URL address in each loop iteration
    command_nested
  9. The different data table parameter values are stored in a data table. You created the data table in the Repository tab prior to its assignment to the script. In our example, the Different URL addresses are listed in the URL_DT data table in the URL column
    repository_tab
  10. In the script canvass, when you set the parameter usage to data table, you also select the data table and data table columns where the values are stored. You assign the data table to the script in the variable panel
    datatable_parameter