Insert the script function

The results from locators that are used as input by a Script Locator must be defined in the Project Tree hierarchy before the Script Locator. This is because the locators are processed in the order that they appear in the Project Tree, and it is necessary for the locators used as input to have results before the Script Locator is executed.

You can insert a script function by following these steps:

  1. Open the locator properties.
  2. Click the Show Script button.

    The Script Code window loads the extraction script for the selected class.

  3. In the Object list, select the name of the Script Locator.
  4. In the Proc list, select LocateAlternatives.

    The empty script function is inserted.

  5. Modify the script function as necessary.
  6. From the File menu, select Close Window to save your script changes and close the window.
  7. Optionally, click Close to close the locator properties window.
  8. Save the changes to your project.