Building the FlexiLayout
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.
The program will check:
- 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. If the program detects an element that does not meet this requirement, the faulty element will be highlighted. - 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 theAdvanced post-search relations field must refer only to the element itself and to elements located above the given element in the FlexiLayout tree. If the program detects an element that does not meet this requirement, the faulty element will be highlighted.
- 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.
To build a FlexiLayout, click Build FlexiLayout on the shortcut menu of the FlexiLayout.
Note.A FlexiLayout is built automatically before it is applied to an image, saved, or exported. If the program detects errors 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 the user's attention to potentially problematic type conversions and do not prevent the program from applying the FlexiLayout to images or exporting it. If some code on the Advanced tab causes the program to display a notification on the Errors tab, you can quickly jump to the operator that caused the problem by double-clicking the notification.
12.04.2024 18:16:02