Widget Connector | ||||||
---|---|---|---|---|---|---|
|
In this session we will begin constructing a feature rich application building on and expanding the knowledge we have acquired so far. To recap the steps in the video:
Create Businesses streams
- Create a new Stream on the
Contacts
analysis model calledBusinesses
- 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 the
UID
- Add all attributes and hide the
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 stream Businesses, and bring the new dashboard back to the front
- Drag the stream icon from the configuration form onto the top left portion 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
- Set the Position Settings: Top, Left, Right and Bottom to 0px
- Tick Prevent Dragging
- 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
- Use the Template StandardActionForm to create a layout on the first Tab and drag all the attributes from the
Businesses
stream onto it - Set the Title to
Details
- Logically order the Attributes and hide the
UID
field
Set 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.
Tip |
---|
It is advisable to always create a default sort order on all views. |
Go into App Mode and enter data to test the new configuration.
Create Contacts grid
- Exit App Mode
- Open the configuration form for the stream
Contacts
, and bring theBusinesses
dashboard back to the front - Click on the
Contact Details
Tab on theBusinesses
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 as we will link contacts to specific businesses.
Panel |
---|
Next video: 5. Custom Actions |