To define a table that may have its rows spread over more than one page (multi-page tables) proceed as follows:
|
1. |
While recording and when on the screen that has the table, click on the Define a loop screen button on the toolbar. |
|
2. |
Define the end condition for the loop:
|
a. |
Using the Property grid, set the end condition of the loop so that you stop at the last page (or wherever you need in the
middle). The end condition must be independent from the data in the table. |
|
b. |
You can also define a maximum number of loops you want to execute. For example, if you want data from the first two screens
only, put 2 in the MaxScreens field. |
|
c. |
At run time, the loop will stop when any one of the above two conditions is met (for example: if your table spans 10 screens
but you put 2 in the MaxSctreen field, the loop will execute 2 times only. If your table spans 10 screens and you put 15 in
the MaxScreens field, the loop will end when the end condition is detected on the 10th screen). |
|
|
3. |
Set the key required to scroll down the table from the Key field in the property grid. |
|
4. |
If need be, you can set a delay after every page down key pressed by typing the delay amount in milliseconds in the Delay field in the properties. |
|
5. |
Drag your table and drop it over the loop node to define what we call a loop table. As a result, the table will collect data from all the consecutive screens of the loop until the end condition is met. The
content of the table will be returned by the resulting code to its calling object as a System.Data.DataTable.
|
To define the end loop condition, proceed as follows:
|
1. |
After creating the loop node, stop recording. |
|
2. |
Navigate to the screen that has the end loop condition displayed on the screen (or may be a condition that is no longer displayed
on the screen).
|
|
3. |
Click the recording button again:
|
b. |
Click on the ellipsis of the end condition. |
|
c. |
Define the end condition using the Condition Editor dialog box. |
|
|
4. |
Stop recording and go back to the initial screen where you have the first set of rows in the table. |
|
6. |
Select the table and drag it to the Loop node.
|
|
7. |
Press the key that will take you out of the table screens (e.g., F3 or the Enter key). |