English (English) - Change language

Sample 3. Step 12: Describing the Delivery Address field with a DeliveryAddress element

To create the DeliveryAddress element:

  1. In the InvoiceHeader.grAddress element, create an element of type Paragraph and name it DeliveryAddress.
  2. Click the Relations tab.
  3. Since the DeliveryAddress field can only occur above the name kwInvoiceNumber, only to the left of the wgAddressRight white gap, and only to the right of the beginning of the name kwDeliveryAddress (with small offset), set the following search constraints:
    • Above the element kwInvoiceNumber, Offset = 0.
    • Left of the element kwInvoiceNumber, Offset = 0.
    • Right of the element kwDeliveryAddress, Offset = -50, Reference boundary = Left
      Note.Offset values are selected by method of trial and error.
  4. Since in the Group element InvoiceHeader.grAddress we have already specified that the DeliveryAddress field can only be located below the keywords of the name kwDeliveryAddress, we need not duplicate this constraint here.
  5. Click the Advanced tab.
  6. Since the Delivery Address field is optional on the images but whenever it occurs it has a name, set the following additional search constraint in the Advanced pre-search relations field:Look for the object only if the kwDeliveryAddress element has been detected.In the FlexiLayout language:
    If InvoiceHeader.kwDeliveryAddress.IsNull Then DontFind;
  7. Try matching the FlexiLayout with the test images and make sure that the program successfully detects the element on all the images where applicable.
  8. To describe the location of the DeliveryAddress block, select the Source element option, then click and select the DeliveryAddress element as the source element.

09.10.2020 8:50:41


Please leave your feedback about this article