Can we add the values from multiple fields into a result field using the ABBYY FlexiLayout Studio?

Question

Can we add the values from multiple fields into a result field using the ABBYY FlexiLayout Studio?

Answer

The FlexiLayout Studio is used to design the template that describes how fields are extracted from the document. You can't perform calculations that are based on other extracted fields in the FlexiLayout Studio project and such logic needs to be described in the FlexiCapture project.

When the FlexiLayout development is finished and it is imported into the Document Definition. 

We can create a separate field in the Document Definition, that doesn't require an extraction (the "Can have region" checkmark is unchecked in the properties of the field).

mceclip0.png

And then we can use the built-in "Calculate Sum" rule to sum up all needed values in the result field.

Additional information

About ABBYY FlexiLayout™ Studio

Have more questions? Submit a request

Comments

2 comments

  • Avatar

    Ranjit Nayak

    Anyway we can do this in flexilayout studio only? as we dont touch have such fields available in document definition stage. so we export to layout and afl file we import to training batch.

    But before importing to batch, we need to sum 2 fields.

    0
  • Avatar

    Dmytro Bezus

    Hello Ranjit,

    The "sum-up rule" functionality can be defined within the Document Definition itself. However, there is an alternative way to achieve similar results. You can create a scripted stage in your workflow that includes the necessary mathematical calculations.

    0

Please sign in to leave a comment.