Versions Compared
Version | Old Version 3 | New Version 4 |
---|---|---|
Changes made by | ||
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
It is often easier to have data available when creating a screen as it allow you to dynamically create many items on the screen and see how the screen will look when populated. For this reason we will import the data downloaded from the first chapter in this course.
Import the Data
There are many ways to import data, however covering each of these s beyond the scope of this course. For our example we will import our data into an ERD.
Create an ERD
- From the application home screen, click
.Insert excerpt _erd _erd nopanel true - The ERD selection screen opens.
- Click
and enter:Insert excerpt _add _add nopanel true - Name,
My Data
- Description, a description of what the ERD will be used for.
Image Added
- Name,
Upload Data
- On your local machine open the folder containing all of the resource files downloaded and extracted in chapter 1.
- Drag each file, one at a time, onto your ERD
- diagram:
Image Added
- The tables are created in PhixFlow and will be available to our screens when we create them.
Set the Attributes
Now we will setup the following:
- Primary Keys for each table so we can uniquely identify each record.
- Display Names so we see the defined field instead of an ID.
- Relationships between tables so we an create relational views.
- See Understanding ERDs for more information on these concepts.
- Companies Table
- Right-click on CompanyID, and select Make Primary Key.
- Right-click on CompanyName, and select Make Display Name.
- Employee Table
- Right-click on EmployeeID, and select Make Primary Key.
- Right-click on first_name, and select Make Display Name.
- ISO Country Codes Tables
- Right-click on CountryCode, and select Make Primary Key.
- Right-click on CountryName, and select Make Display Name.
- Orders Table
- Right-click on Order_ID, and select Make Primary Key.
- Order Lines Table
- Right-click on OrderLineID, and select Make Primary Key
Set the Table Relationships
The relationships allow us to associate the tables logically using keys. For example, MyBusiness Ltd has these Employees. We use primary and foreign keys to create the relationships.
- Companies to Empoyees
- Click and hold
Adding Data using an analysis model
Why we use analysis Models.
ERD vs Analysis Models