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.

Note: Although most wizards are used to step users through a series of inputs, the ability of a wizard to be run from the Home page (without a starting data object) may open up other opportunities that do not actually require user input. In this case, you can create a wizard workflow with all of the code in a single action’s Start event so that it will execute without waiting for user input. You must use 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")