CreateFields
Creates the Data file for a page in a batch. The Data file for the first page in the batch, tm000001, as an example, is tm000001.xml.
Syntax
bool CreateFields ()
Parameters
Smart parameters are supported.Returns
True if successful. Otherwise, False.Level
Page level.Details
Creates the Data file for a page in a batch. The Data file for the first page in the batch, tm000001, as an example, is tm000001.xml.This Data file lists all fields for the current page based on the fields listed in the setup Document Hierarchy. Each field has an ID (for an Invoices page, for example, the Date field's ID is Date), and three properties with default values: TYPE, Position, and Status.
Later, actions of various kinds (Locate, Zone, Validation, DCO, etc.) can assign other values to these properties. These actions can also add properties (variables) and values to the Data file, or remove properties and values.
- Example:
AnalyzeImage() RotateImageRecognizePageOCR_S() SetSearchArea(0.5) SetProblemValue(0.3) SetTemplateDir(\ParentDirectory\Invoice\Template) FindFingerprint(True) CreateFields()This Invoices application sequence sets up the current page for processing, recognizes the words on the page, associates the page with a fingerprint, and finally creates a Data file with blank fields for the page.