Multiple Tables on one Template
  • 29 Jun 2023
  • 2 Minutes to read
  • Dark
    Light
  • PDF

Multiple Tables on one Template

  • Dark
    Light
  • PDF

Article summary

You can create many different constraints for the same table using multiple data sources. This will allow you to use multiple data lists created by the simple table wizard in the template to display differently constrained data from the same table. 

In the steps described, we will use a new beverage table and split its contents into two data lists using different data sources. We will look at a very simple example of restricting one of the two data sources using the Offset function, which will allow one of the data lists to continue where the other one left off. 


Topics covered:
Templates tab - Designer - Simple table wizard - data source editor

Sample screen:



TUTORIAL STEPS:


A) Create a table on the Tables tab - see how to do this in the Create and manage your tables tutorial.


B) Create two unconstrained data sources for your new table on the Data sources tab - see how to do this in the Create DATA sources for tables tutorial.


C) Create a template on the Templates tab or use earlier created food menu template and insert your new table using the simple table wizard.

D) Simple table setup


  1. Select an unconstrained data source for your first simple table in the Setup your table window  - see how to do this in the previous Adding tables to templates using wizard tutorial. 
  2. Click the button to insert your table and open it in the row template design mode.

Note: In our example we set we set the number of pages to 1 and the number of rows per page to 4, so we already know that the second data list will need to skip the first 4 rows of the table.
E) Click the Save button after you design the row template.


F) Copy the data list element using Ctrl+C command and paste it on canvas using Ctrl+V command if you wish to skip the designing phase of the row template for your second data list.

Otherwise, you can create a new data list with simple table wizard again, select the second data source in the Setup your table window and design the row template from scratch. In this case skip to tutorial step J)

G) Click the button with the name of your table on the Canvas sidebar to open the Row templates window.
H) Row templates window


  1. Clone the row template of your first simple table using three-dots menu. 
  2. Enter the name of the cloned row template in the new Clone pup-up window.
  3. Click the Save button.


I) Edit the cloned row template using three-dots menu.

J) Select and edit data source


  1. Select the second data source for you row template on the Canvas sidebar.
  2. Click the Edit button to edit the selected data source.

K) Set Offset

  1. Click the Add offset button.
  2. Select the Fixed value option for the Value type.
  3.  Enter the Value of the offset. In our example we need to skip 4 rows of the table for our second data list. 
  4. Click the Save button.


L) Click on the Save button.
M) Select the earlier cloned row template in the Row template window.
N) Preview your template

  1. Click the Preview button.
  2. Check the result. The second data list continues where the first one left off.
  3. Click the OK button to close the Preview window.

O) Click Save & publish button when you are finished with the template design.



Was this article helpful?