Hi,
In Flexi Layouts for Vendor Invoices, we capture Bill to and Ship To Blocks, with the element structure outlined in the attachment. These two blocks usually include the following: Salutation (Mr./Ms.), Company Name, Address 1, Address 2, Address 3, City, State, Zip Code, Country.
Since not all address elements appear in all invoices, what is the most efficient method (FLS element structure/approach) to capture this varying information block?
How do we tell, for instance, to Address 2 element to capture data, if there exists a second line in Bill To block? Or "Country" element to capture country information, if the last line is a country name?
My current solution works for now on invoice basis, but it is not flexible and is inefficient.
Thank you.
Comments
1 comment
Hello,
As to the capturing multi-line Address field, we recommend you to use the paragraph element in your layout. This element may contain one or several strings and it will capture all required region of adjacent rows with needed information. Then in the Document Definition Editor on the FC level, you may split the text between all fields by script.
Countries can be found by, for example, static text element which should contain countries variants separated by | symbol (e.g. Canada|US|Germany|France|Norway ...). If this element is found, then the block of code can be run in the Advanced pre-search relations of some next element, like:
if stCountiresNames.IsFound then
{
RestrictSearchArea: stCountiresNames.Rect.GetInflated(200dt, 200dt);
}
else
{
DontFind;
}
Note that on the FLS level we recommend just capture regions. To work with recognized text values you'll need the FC DocumentDefinitions' scripts level.
Please sign in to leave a comment.