Collect and display data in a structured way

Collect and display data in a structured way

Overview

In this example, we use Scaffolding to create a form for a user to fill in with data. Then, reuse that data and display it in a structured way.

Ingredients

Add-on

Scaffolding

Platform

Server, Data Center

Macros

Text Data, Date Data, List Data, User Options, Get Data

Step-by-step guide

Step 1 - Create a table

  1. Create a table with six rows and two columns.

  2. Fill in the table as shown:

Customer

 

Junior Developer

 

Senior Developer

 

Support

 

Start Date

 

End Date

 

Step 2 - Use Scaffolding macros to create form fields

  1. In the cell adjoining Customer, create a Text Data macro and provide a relevant name, for example, customer.

  1. In the cell next to Junior Developer, create a List Data macro. Inside the List Data macro:

    1. Add a User Options macro.

    2. Edit the User Options macro according to your requirement (groups, space(s), user(s) etc.).

  2. Repeat the same as the above step for the cells next to Senior Developer and Support.

  3. In the cell next to Start Date:

    1. Add a Date Data macro.

    2. Set the Name parameter to startdate.

  4. In the cell next to End Date:

    1. Add a Date Data macro.

    2. Set the Name parameter to enddate.

Make sure to set each macro with a unique and identifiable name.

Your editor view must look something like this:

Customer

Junior Developer

Senior Developer

Support

Start Date

End Date

  1. Click Save.

Step 3 - Enter data into the form fields

  1. Click Edit Contents at the top of the page.
    The form created in the previous step loads.

  1. Fill in the form with relevant data. The form table must look similar to this:

  1. Click Save.

Step 4 - Create another table to display retrieved data

  1. Edit the page again.

  2. Create a table similar to the following: