---
title: "Collect and display data in a structured way"
canonical: "https://support.appfire.com/space/SCAFS/477599302/Collect%20and%20display%20data%20in%20a%20structured%20way"
format: markdown
---
> Macro (aura-html)

## 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](https://appfire.atlassian.net/wiki/x/bpl3H) macro and provide a relevant name, for example, `customer`.

2. In the cell next to *Junior Developer*, create a [List Data](https://appfire.atlassian.net/wiki/x/AJl3H) macro. Inside the List Data macro:
  1. Add a [User Options](https://appfire.atlassian.net/wiki/x/Z5l3H) macro.
  2. Edit the User Options macro according to your requirement (groups, space(s), user(s) etc.).
3. Repeat the same as the above step for the cells next to *Senior Developer* and *Support*.
4. In the cell next to *Start Date*:
  1. Add a [Date Data](https://appfire.atlassian.net/wiki/x/mZh3H) macro.
  2. Set the **Name **parameter to `startdate`.
5. In the cell next to *End Date*:
  1. Add a [Date Data](https://appfire.atlassian.net/wiki/x/mZh3H) 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** | ![image](media://c203bce9-e3a7-45ac-acae-2cce5a00342c) |
| --- | --- |
| **Junior Developer** | ![image](media://8b5c1a0a-e382-4e5d-b94b-246736feb653) |
| **Senior Developer** | ![image](media://9ed91451-a557-45ff-b571-073bd1796e7a) |
| **Support** | ![image](media://42c2e4ed-fcbb-4be9-aeed-0d8a144b6779) |
| **Start Date** | ![image](media://dff3a33d-2c89-43d2-8a85-f3d33a69257e) |
| **End Date** | ![image](media://fad78c07-93a2-44b9-b269-6630431ef41f) |

6. 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.

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

![image](media://d3de6398-ffd7-4e95-b879-42a8e3d79143)

3. Click **Save**.

### Step 4 - Create another table to display retrieved data

1. Edit the page again.
2. Create a table similar to the following:

| **Project Initiation** |  |
| --- | --- |
| **Project Analysis** |  |
| **Development** |  |
| **Code Review** |  |
| **QA** |  |
| **Bug Fixes** |  |
| **Support Handover** |  |
| **Documentation** |  |
| **Monitoring** |  |
| **Reporting** |  |
| **Project Period** |  |

### Step 5 - Retrieve user-entered data and display it

Use the [Get Data](https://appfire.atlassian.net/wiki/x/gJh3H) macro to retrieve the data that was saved in the form fields.

1. In the cell next to *Project Initiation*, insert a Get Data macro.
2. In the *Preview*** **window, enter `seniordev` (or, whatever name given in the *Senior Developer* List Data macro) in the **Field Name** entry field.
3. Do the same for the rest of the table cells with Get Data macros that reference the other data macros that we saved information in.  
The table should then look similar to below.

| **Project Initiation** | ![image](media://cfa01e1d-4838-4a98-87f0-98523c1e510c) |
| --- | --- |
| **Project Analysis** | ![image](media://2e67a887-e673-40a3-8cf4-b62083d8d75d) |
| **Development** | ![image](media://2e67a887-e673-40a3-8cf4-b62083d8d75d) |
| **Code Review** | ![image](media://cfa01e1d-4838-4a98-87f0-98523c1e510c) |
| **QA** | ![image](media://f53a1343-4357-453d-82f2-7b5b657ef837) |
| **Bug Fixes** | ![image](media://2e67a887-e673-40a3-8cf4-b62083d8d75d) |
| **Support Handover** | > Macro (inline-media-image)

 / > Macro (inline-media-image)

 / > Macro (inline-media-image) |
| **Documentation** | > Macro (inline-media-image)

 / > Macro (inline-media-image) |
| **Monitoring** | ![image](media://f53a1343-4357-453d-82f2-7b5b657ef837) |
| **Reporting** | ![image](media://cfa01e1d-4838-4a98-87f0-98523c1e510c) |
| **Project Period** | From > Macro (inline-media-image)

 to  > Macro (inline-media-image) |

4. Click **Save**.

> ✅ - Ensure that each Scaffolding element has a *unique ID,* as having the same ID for different elements may cause issues.
> ✅ - Macro names are like variables that store data and these names allow the data to be retrieved at a later time.
> ✅ - Dates from [Date Data](https://appfire.atlassian.net/wiki/x/mZh3H) can be formatted (for example, `dd-MMM-yyyy`).

## Result

The resultant table is similar to the table shown below:

![image](media://5ef2ee23-0016-4d82-b472-3773c55c0c16)