Script forms

You can create unique displayoptions for your script forms which are unrelated to those appearing in the application that executes the script. Changes to the RAD code are unnecessary when creating displayscreen records for this purpose; the appropriate variables have been hard coded into the script.execute application and need only be applied correctly.

Format variable

The format variable for script.execute is $L.script.format and is hard coded into the RAD layer of the application. Enter this variable into the Format field of any displayscreen record to bind its options to multiple script forms. This local variable is bound to the display form you entered in the Format field on the script definition record.

To apply unique options to a single form in a script, name the form in the Format field of the displayscreen record rather than use the local variable.

Display actions

Actions for displayoptions in scripts are defined on a decision panel in the RAD code of the script.execute application. Unless you possess a RAD license and are capable of programming in RAD, you are limited to the following, hard coded actions:

  • do nothing
  • back
  • close
  • more
  • redraw

Related concepts

Display application
Creating displayscreen records
Displayoptions