Tips for Wizards
Many Optiva scripting functions enable you to pass in empty quotes for the Symbol and Object parameters. The empty quotes indicate that you are using the Symbol and Code of the object that the script is running against.
Unlike most other scripts, the Wizard can be run without a target object. Consequently, there is no place for these functions to retrieve a default Symbol or Object name.
If you are writing a script for a Wizard, you must provide a non-blank Symbol and an Object parameter for those methods that require one. You cannot use empty quotes for the Symbol and Object.
The global variables
_OBJECTKEY
and
_OBJECTSYMBOL
are blank in this scenario. You should not write a script that relies on these
variables having some specific value.
StartForm()
at the end of the event to open some data object (specify
the form name and object key). To use StartForm
to return to the home
page, use any word as the first parameter and either no second parameter, or an empty
string for the first
parameter:Startform("Home")