Dataset
Add Data To Your App
Go to Data > Datasets.
There are several options available when creating a dataset. In this case we will create a basic dataset manually, which will contain a list of household chores for our housekeeping app.
Create a dataset and structure
First we create the dataset.
-
Click Create in the top right corner
-
Click Create Dataset Manually
-
Give the dataset the name
chores
We are going to need two columns of data:
-
Chore name
-
Details about the chore
Now we create the data structure.
-
Enter a name in the Column Name field (e.g.
task
) -
Select Text in the type drop down list
-
Click Add Column
-
Write Column Name field (e.g.
description
) -
Select Text in the type drop down list
These options aren’t used:
a. Create a List View (we already created the view) b. List State (not using the state in this case) |
-
Click Add Dataset to save save the structure and data
The structure is now done.
Create dataset content
Time to add data to the dataset
-
Click Add Item in the top right corner
-
Enter
Laundry
in thetask
field -
Enter
Sunday is always laundry day
in thedescription
field -
Click Save
Repeat the steps 1-4 to add more tasks and descriptions to the dataset, for instance:
Task | Description |
---|---|
Garbage |
Take out the garbage |
Dishes |
Do the dishes after dinner |
Vacuum |
Don’t forget the storage room |
Connect the Dataset With a View
Go to Views
-
Select
second_view
-
Open View Properties
-
Find to Inputs
-
Click New Input
-
Select the dataset column
name
to display in the input -
Select type Text
-
Click Add
-
Select the text display on the canvas
-
Open the Component Properties tab
-
Find the Data section
-
Enter
${task}
in the field Text
This instructs the text display to get it’s content from the input called task
.
We now have created an input from where text from the dataset will be displayed in the text display component.