Sample 3. Step 12: Describing the Delivery Address field with a DeliveryAddress element
To create the DeliveryAddress element:
- In the InvoiceHeader.grAddress element, create an element of type Paragraph and name it DeliveryAddress.
- Click the Relations tab.
- 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. - 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.
- Click the Advanced tab.
- 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; - Try matching the FlexiLayout with the test images and make sure that the program successfully detects the element on all the images where applicable.
- To describe the location of the DeliveryAddress block, select the Source element option, then click and select the DeliveryAddress element as the source element.
4/12/2024 6:16:02 PM