Insert the script function

The name of the script function is <Script Locator Name>_LocateAlternatives. The corresponding script event is fired at the point when that Script Locator runs.


Example of the order of script events

The order of locators A, B, C and D is defined in the Project Tree. If locator C is a Script Locator, it can only retrieve the results from locators A and B, since locator D has not yet run.

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.