Skip to main content
FlexiLayout building is a process whereby ABBYY FlexiLayout Studio checks a FlexiLayout for errors, including errors in search areas, additional search criteria, the properties of the FlexiLayout blocks, and the element properties that contain the parameters of search objects.

What the building process checks

  • The properties of the elements. Any properties of an element and its search constraints may link only to elements which are located above this element in the FlexiLayout tree. Any element that does not meet this requirement will be highlighted as faulty.
  • The properties of the blocks. Blocks may not refer to non-existent or disabled elements.
  • The expressions written in the FlexiLayout language (Advanced tab).
    • The code of the expressions must have no syntax errors.
    • Additional constraints set on the Advanced tab in the Advanced pre-search relations field must refer only to elements located above the given element in the FlexiLayout tree. Additional constraints set on the Advanced tab in the Advanced post-search relations field must refer only to the element itself and to elements located above the given element in the FlexiLayout tree. Any element that does not meet this requirement will be highlighted as faulty.
    • All the global constants used in the code must be specified.
    • All the variables used in the code must be declared and initialized.
    • The code may refer only to entities available in the corresponding sections of the code.
    • The properties of blocks may refer only to the regions of elements.
    • For an element of a particular type, you can specify only properties available for this type. For example, you cannot specify Max width for a Static Text element.

Build a FlexiLayout

To build a FlexiLayout, click Build FlexiLayout on the shortcut menu of the FlexiLayout.

Errors and warnings

A FlexiLayout is built automatically before it is applied to an image, saved, or exported. If errors are detected when building a FlexiLayout, the blocks and elements with errors will have icons with red Xs next to them in the FlexiLayout tree, and the Errors tab containing error information will appear in the properties dialog boxes of the elements with errors.
Notifications on the Errors tab will have red or yellow flags next to them. A red flag indicates an error, a yellow flag indicates a warning. If at least one element or block produces an error, the FlexiLayout cannot be applied to images or exported. Warnings only serve to draw your attention to potentially problematic type conversions and do not prevent the FlexiLayout from being applied to images or exported. If some code on the Advanced tab causes a notification to appear on the Errors tab, you can quickly jump to the operator that caused the problem by double-clicking the notification.