Scripts on class level

At class level, you can add class specific scripting for field extraction, field validation, and verification methods, as well as scripting related to the Validation and Verification forms, by following these steps:

  1. Select the desired class in the Project Tree.
  2. Right-click the selected item, and click Show Script, to open the WinWrap Basic Script Editor. Alternatively, click Script Icon in the Details window caption.

    The Script Code window is displayed.

  3. On the left-hand side of the window, select the newly created tab for the desired class level if it is not already open.

    When the appropriate tab is selected, the window caption is set to <ClassName> - Script Code.

    Tip To implement a Script Locator, field extraction, or field validation methods that are executed for classes and fields, add an extraction script for the class.
  4. Select the desired object in the Object list.

    At the class level, the Object list contains all objects that are related to the document and its fields, as well as to Validation and Verification forms.

  5. Select the appropriate procedure for the currently-selected object in the Proc list.

    At the class level, the Proc list provides all events that are related to the extraction, validation, and verification processes of a document and its fields.

  6. In the edit area of the Script window, insert the script code. Before you start scripting, make sure that you selected the correct tab.