Script Locator
The Script Locator uses a custom script event to locate
data and raises a script event that enables users to define their own extraction results. The locator field in the XDoc is prepared based on the Script Locator settings, and can be a simple field or a group field. The locator field can be filled with alternatives in the event handler. How this is done is up to you. You can take results from other locators that are defined to precede this Script Locator or initialize the alternative with custom data. All alternatives are sorted by confidence after the script event.
For each Script Locator, an event is fired and a configurable script function is executed when Transformation Server runs.
Manage a Script Locator in the following ways:
Using the Script Viewer enables you:
If the Script Locator uses input from other locators or evaluators, run those locators before testing the Script Locator. Dependent locators are not processed and therefore needed input data may not be available. To run a dependent locator, open the locator properties and click Test, or press F7 for a test document to run the complete extraction.
The extraction type of a Script Locator is determined by its configuration. When the locator is set to Simple Field then the extraction type is "single". When the locator is set to Group field then the extraction type is "group".
By default, the locator is configured for a Simple Field which means that the extraction type is "single" and this locator returns a single piece of information.
If the locator is configured for a Group field, then the extraction type changes is "group" and this locator returns multiple subfields.
If available, click on the individual link to create and assign a field. Otherwise, click the Create and Assign Fields button to create one or more field that are mapped to this locator.
The Properties of Script Locator window has the following tabs:
Related topics: