Hi,
I've been working with the invoice standard project for some time now, but I'm missing a new field when processing invoices from Scandinavian countries.
In Denmark it looks like this: " +71<000000023055809+84512532< " and called FIK
In Sweden and Norway it a number from 2 og 25 digits and called OCR / KID.
What is the correct approch for getting this field in the project ?
1) Create a new flexilayout and add it to the project
2) Create one text block called PaymentID
3) Create a Group in the Footer
4) Create a LineGroup in the "Group" in Footer and add the 2 RegEx (for Denmark)
1. Regex: ([\|<|>])*([01|04|15|71|73|75])*([\+|\<|\>])*N{15-16}([\+|\-])N{8}*([\<|\>])*
2. Regex: N{15-16}
5) Create 2 CharacterString with different "static texts" (KID / OCR) relations
(why does FlexiCapture not follow standard regular expressions ????
Denmark uses a specifc regularexpression without any relations
Sweden / Norway uses a relation to find the correct information.
Thanks
Comments
2 comments
Hello,
In the FLS you may try to find two elements using different logic of search, then create a Region element with the following advanced pre-search relation:
//--------------------
if group1.csValue.IsFound then RSA: group1.csValue.Rect;
else if group2.csValue.IsFound then RSA: group2.csValue.Rect;
else DontFind;
//--------------------
and pass this Region as a source element to the block. It may help you if the logic needed to extract the required value seems to be too complex for the single field.
Thanks - I'll give it a try
Please sign in to leave a comment.