PhixFlow Help
4. Creating an Advanced Maintenance Application
In this session we will begin building a feature-rich application, using the knowledge we have acquired so far and expanding on it. To recap the steps in the video:
Create Businesses Streams
- Create a new Stream on the
Contacts
analysis model. Give it the nameBusinesses
. - Set the Period of the stream to Transactional.
Add attributes to the stream.
Name
Type
UID
Integer
Name
String
Type
String
Address1
String
Address2
String
Postcode
String
AnnualTurnOver
Decimal
CustomerSince
DateTime
Description
Bigstring
Active
TrueFalse
- Create another Stream called
BusinessNotes
. - Set the Period of the stream to Transactional.
Add attributes to the stream.
Name
Type
UID
Integer
NoteDate
DateTime
NoteByUser
String
Note
String
BusinessUID
Integer
- In the
Contacts
Stream, create a view calledBusiness
Contacts
. Add all attributes and hide theUID
.
Create the Dashboard
- Create a new Dashboard with the Name
Businesses
, and click on Open Maximised. - Divide the dashboard into three portions using one vertical line, and then a horizontal line in the left pane.
Create the Grid View Portion
- Open the configuration form for the
Businesses
Stream, and bring the new dashboard to the front. - Drag the stream icon from the configuration form onto the top left of the dashboard, to create a Grid View.
Create the Details Portion
- In the bottom left portion, create a new Form called
BusinessDetails
. - Add a Tabs component from the palette.
- Find the Tabs component in the repository and set:
- Position Settings: Top, Left, Right and Bottom to 0px
- Prevent Dragging: tick
- Update the Tab Header to
Business
. - Update the Title display text to
Contact Details
. - Add a Dynamic Text component called
Name
.- As
Name
is also the name of an attribute on the stream backing our form, PhixFlow will automatically display the value held in the attribute in the new component, in this case the Dynamic Text. - Also note that if you give a component the name of a context variable, PhixFlow will also link the context variable value to the new component. If you have both a stream attribute and a context variable with the same name as your new component, the attribute will take precedence.
- As
- Use the Template
StandardActionForm
to create a layout on the first Tab. Drag all the attributes from theBusinesses
stream onto it. - Set the Title to
Details
. - Logically order the Attributes and hide the
UID
field.
Set the Default Sort Order and Link Views
- Create a Default Sort Order.
- Drag the
UID
from the Grid View onto the details section to link the two elements.
We recommend that you always create a default sort order on all views.
Go into App Mode and enter some data to test the new configuration.
Create a Contacts Grid
- Exit App Mode.
- Open the configuration form for the stream
Contacts
, and bring theBusinesses
dashboard to the front. - Click on the
Contact Details
tab on the Businesses dashboard. - Drag the Stream View
Business
Contacts
from the configuration form onto theContact Details
tab. - Refresh the view and the results will be displayed.
This view will be revisited in a later chapter of the course, when we will link contacts to specific businesses.
Next video: 5. Custom Actions
Please let us know if we could improve this page feedback@phixflow.com