Repeating Tables & Rows
Tables:
| • | If you wish to repeat the contents of an entire table, surround the table with a <<*Repeat* block>>. E.g.: |
<<*Repeat*!Shareholders!*
[Shareholder] |
[SharesOwned] |
[ShareholderAddress] |
>>
| • | If the table contains a header row or rows, you can tell Pathagoras to automatically repeat just the non-headers rows. Here's an example (similar to the above): |
<<*Repeat(header)*
In the following section, provide the requested information regarding each child: |
||
|---|---|---|
Name of child |
Address |
Date of Birth |
[Child] |
[Childaddress] |
[Date of Birth] |
>>
When you “Process Page” on the above example, Pathagoras will ask for the # of repeats. If Answer=3, the table becomes:
In the following section, provide the requested information regarding each child: |
||
Name of child |
Address |
Date of Birth |
[Child@1] |
[Childaddress@1] |
[Date of Birth@1] |
[Child@2] |
[Childaddress@2] |
[Date of Birth@2] |
[Child@3] |
[Childaddress@3] |
[Date of Birth@3] |
And after the application of the Instant Database:
In the following section, provide the requested information regarding each child: |
||
|---|---|---|
Name of child |
Address |
Date of Birth |
John Doe |
123 Main Street |
January 28, 1953 |
Paula Doe Smith |
334 Oak Landing |
July 7, 1952 |
Francis Doe |
117 Cherry Orchard Land |
August 18, 1962 |
| • | If you wish to repeat a selected row in a ‘plain table’ (that is, one that is not surrounded by any <<*Repeats*>> instructions, follow these steps: |
| 1. | Place your cursor in the row you want to repeat. (In the below example, place cursor anywhere in the last row.) |
| 2. | Click the Pathagoras features menu. |
| 3. | Click the "Process" element and then the 'Repeat Rows' button. |
| 4. | When prompted, type in the number of times you want the row to repeat. All rows at and below the cursor level will be duplicated and all [bracketed variables] will be incremented so they can be identified and answered separately when you run the the Instant Database. |
In the following section, provide the requested information regarding each child: |
||
|---|---|---|
Name of child |
Address |
Date of Birth |
[Child] |
[Childaddress] |
[Date of Birth] |
Here is the result if “3”chosen:
In the following section, provide the requested information regarding each child: |
||
Name of child |
Address |
Date of Birth |
[Child@1] |
[Childaddress@1] |
[Date of Birth@1] |
[Child@2] |
[Childaddress@2] |
[Date of Birth@2] |
[Child@3] |
[Childaddress@3] |
[Date of Birth@3] |
Note: Inside rows cannot be duplicated as 'stand alone' units. All rows from the cursor position down will be duplicated. The limitation can easily be overcome by simply not having information you do not want repeated beneath the section of the table you want duplicated. If necessary, split the table.