You have created a screen that displays the data. But you also want your users to be able to edit data records. So you will now add a form area to the dashboard.
...
...
src | https://www.youtube.com/embed/J3YDLosS_5o?rel=0 |
---|
width |
---|
|
...
...
Insert excerpt |
---|
| _video_controls |
---|
| _video_controls |
---|
nopanel | true |
---|
|
Tip |
---|
The palette has been improved since this video was made. Check the instructions below for the details of the palette components you need. |
Expand |
---|
|
- Right-click on the dashboard and click Dashboard Options then click
Insert excerpt |
---|
| _bar_horizontal |
---|
| _bar_horizontal |
---|
nopanel | true |
---|
| . PhixFlow adds a separator bar, you can adjust how far up the screen the bar should be by dragging it with your mouse. - Right-click on the lower white area, and select Create New Form, and enter the name
Business Entry Form . PhixFlow adds an empty blue form area. - In the bottom right of the PhixFlow window, click on the
Insert excerpt |
---|
| _palette |
---|
| _palette |
---|
nopanel | true |
---|
| icon and expand the
|
...
...
- - App Builder.
A palette is a set of pre-made components, that make it quick and easy to lay out a form. - Drag in Form Title and name it
Title . This adds a header area to the form. - Drag in Form Body and name it
Business Body . Image Added
This adds a split area and buttons to the form, which now looks like this: Image Modified |
Expand |
---|
title | Add fields to the form |
---|
|
- Click on the
|
...
-
BusinessDataXY stream properties tab. - In the stream properties, select the attributes
UID through to Active. - Shift-drag the attributes onto the left area.
PhixFlow creates a set of form fields for the attributes. Shift-drag the Description attribute onto the right area. PhixFlow creates a field for the description. As this attribute has the type "bigstring", PhixFlow creates a field with
|
...
an editing toolbar, to make it easy to edit the description text. Expand |
---|
title | Why do I have to Shift-drag? |
---|
| When you drag components onto the form, PhixFlow could add them - at the same level in the form structure: use Drag
- or inside a component: use Shift-drag.
The form contains the Form Header and Form Body. Shift-drag tells PhixFlow you want the the properties and description to be contained by the Form Body. |
Your form should now look like this: Image Modified The form is displaying the first data record. If you select different data records in the table, the form display does not change. But you want the form to display the currently selected record. To make this happen you need to connect the form to the data. |
Expand |
---|
title | Link the form with the data |
---|
|
To display the company name in the form title: - In the dashboard, click on Header Fixed and change its properties → Display Text
|
...
- to
Business Details - and . - In the dashboard,click on Dynamic and change its properties → Name to be:
Name As PhixFlow knows there is an attribute called "Name", it will use the name value of the currently selected record in
|
...
- the "Dynamic" area.
Image Modified
To link the table content with the form content: Click on the UID column header and drag it onto the form and confirm. This tells PhixFlow that the form should display the selected record in the grid. - PhixFlow opens a properties tab for the filter. Click
Insert excerpt |
---|
| _finish |
---|
| _finish |
---|
nopanel | true |
---|
| to close it. Now when you select a different record in the table, PhixFlow displays the selected record in the form.
|
Expand |
---|
title | Add a map of the business location |
---|
|
- From the palette, drag a
|
...
- Map Container component onto the blue form background and name it
Map Area .
|
...
- Image Added
- Right-click in the dashboard and click
Insert excerpt |
---|
| _layout_lock |
---|
| _layout_lock |
---|
nopanel | true |
---|
| . This switches PhixFlow from editing the dashboard to displaying the dashboard as an application user would see it. - Click different rows in the data table. The map updates to show the location of currently selected business, using its postcode.
Image Modified
|
...
Update Some Records
...
Expand |
---|
title | Use your new application |
---|
|
You can now switch to a user-view of your application. In the bottom right of the PhixFlow window |
...
is an icon that shows you are currently in Insert excerpt |
---|
| _design_mode |
---|
| _design_mode |
---|
nopanel | true |
---|
| . Click this icon to switch to Insert excerpt |
---|
| _app_mode |
---|
| _app_mode |
---|
nopanel | true |
---|
| . |
...
Things to try: - In the data table, select any record
|
...
- , and notice that the form contents and map changes.
- Update a field in the form
|
...
Click the update button, and notice that the data record in the table is updated.
What Next
Links
...
- , and notice the data in the table changes. (Remember to click the Update button.)
- Add a description for a record. Add some formatting.
|
You have now completed the PhixFlow Quick Start course. You have worked through the general process for using PhixFlow to create a simple application, and practiced the simple drag-and-drop techniques common in PhixFlow.
PhixFlow has many more features that you can use to build applications. You can learn more in the Building Applications training course.
If you are interested in loading and changing data using analysis models, try some of the Introduction to Modelling training course.