Support Multi-level Collections in an Automation
This section explains how to support multi-level collections in an automation.
In the application editors, you can declare elements of N dimensions and the same can be executed in an Automation.
For example, cells in the tables (2 dimensions), cells in the list of tables (3 dimensions), and detailed properties in the list of orders (2 dimensions).
You must iterate each element collections in an automation to support nested loops.
In the following example, each line item in the table is looped to get the targeted table rows and cells data.
Prerequisites
You must capture an application table and declare its rows and cells.
For more details about declaring an element, refer to the following sections:
Selection of Elements Using the Menu
You have captured several tables containing multiple rows and cells and declared each type of element as a collection.
You can easily select the dimension (table, row, cell) you want to iterate on when designing your automation.
Drag and drop your captured screen in your automation and click an element that you have previously declared as a collection on the screen preview. A menu will appear and enable you to specify which element from a collection you want to use in your automation.
For example, if you click Row, you select all rows of the screen. However, if you click Row (0, 1), you select the second row of the first table only.
Once you have selected an element, the list of activities on the Tools tab will be filtered accordingly.
If you do not select a specific element on the preview screen, you can just drop an activity on the screen and the menu allowing to select a specific element will appear.
If two elements are overlapping, you can also select one of them using the menu.
Automation Workflow ExampleIn the above automation workflow, the For each control is looping through all the rows of the table.
In the above automation workflow, the For each is looping each cell of the row and then gets the text inside each cell.