Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Introduction
Welcome to Screens Fundamentals. In this chapter, we will learn about all the key techniques and principles for creating screens in our application.
Concepts
To find out more about the key concepts for designing and creating screens before you take the course below, or simply to refresh your memory, see Designing Screens.
Video Demonstration
Watch the video demonstration, then complete the Fundamentals Tasks below.
Iframe | ||||||||
---|---|---|---|---|---|---|---|---|
|
Fundamentals Tasks
Complete the tasks below, before moving to the next chapter.
Task 1: Create your First Screen from an ERD
- Open your
and on the Companies table, clickInsert excerpt _erd _erd nopanel true Insert excerpt _more_options_erd_IconOnly _more_options_erd_IconOnly nopanel true - Choose
Create ScreenInsert excerpt _screen_icon_only _screen_icon_only nopanel true - In the Create Screen pop up box:
- Enter the name
Companies List
for your new screen - Leave Open Maximised toggled on - this allows the screen to take up all of the available space
- Leave All Users can View Data toggled on - this allows all of your app users to view your screen
- Enter a short Description (optional)
- Choose
Tile with Buttons
from the
, - this template already contains the buttons for add, edit and delete, and can be edited to suitInsert excerpt _template _template nopanel true - Click Create Screen
- Enter the name
- On the Available Attributes selector, select all of the attributes by clicking the top tick box, then deselect the attributes, Status, UpdatedTime and UpdatedByName
- Click and drag the
onto the screenInsert excerpt _attributes _attributes nopanel true - Note: The Available Attributes selector will stay open until closed
- A pop up box will show asking how the attributes should be displayed - select
Insert excerpt _grid _grid nopanel true A further pop box will shows asking if you would like to create an associated edit screen - select Yes
Task 2: Configure the Input Screen
- On the Grid Actions wizard, select the
to create a new edit screenInsert excerpt _add_icon _add_icon nopanel true In the Create Screen for Edit form pop up box:
- Enter the name
Companies Form
for your new screen - Toggle off Open Maximised
Insert excerpt _toggle_off _toggle_off nopanel true - Leave All Users can View Data toggled on
Insert excerpt _toggle_on _toggle_on nopanel true - Enter a short Description (optional)
- Choose the Template,
Edit Form
- Click Create Screen
- Enter the name
- Back on the Grid Actions wizard, set up the Preconfigured Actions as follows:
- Drag Open Screen to ADD new records onto the Add button under your grid
- Drag Open Screen to EDIT selected records:
- onto the Edit button under your grid
- onto the grid - this allows users to edit a record using a double click
- Drag Delete selected records onto the Delete button under your grid
- Close the Grid Actions wizard and Available Attributes selector
Task 3: Configure the Edit Form
the Companies List screenInsert excerpt _lock _lock nopanel true - Select any record on the grid and click the Edit button
- The Edit Form screen you created in Task 2 will open
this screen by right-clicking and pressingInsert excerpt _unlock _unlock nopanel true Insert excerpt _unlock _unlock nopanel true - As PhixFlow knows this screen is backed by the Companies table, click on the
button in the toolbarInsert excerpt _attributes _attributes nopanel true - From the Available Attributes selector, select all of the attributes by clicking the top tick box, then deselect the attributes, CompanyID, Status, UpdatedTime and UpdatedByName
Expand title Why are these attributes deselected? Tip CompanyID is deselected because it already exists on the form, as a
field. You can see this by looking in theInsert excerpt _hidden _hidden nopanel true
. This hidden field was created automatically by PhixFlow when the input form was first created, and can be used in Actionflows and Background Filters.Insert excerpt _layers _layers nopanel true Status, UpdatedTime and UpdatedByName are deselected because they are not needed on the input form. Users will not need to add or modify these fields. Although, they can be added at a later stage, if required.
- Click and drag the attributes onto the Companies Form screen
- A pop up box will show asking how the attributes should be displayed - select
Insert excerpt _field _field nopanel true - A further pop box will show asking if you would like to create Save and Delete actions - select Yes
- On the Form Actions wizard, set up the Preconfigured Actions as follows:
- Drag Save Record onto the Save button on the footer of your Companies Form screen
- Drag Delete Record onto the Delete button
- Close the Form Actions wizard and Available Attributes selector
- Reorder the fields either by:
- clicking on the field and drag it to the desired location
- clicking on the attribute name in the
and drag it to the desired locationInsert excerpt _layers _layers nopanel true
- Change the template of the Web field by right-clicking on the field and selecting
Insert excerpt _template_change _template_change nopanel true - On the
window, choose theInsert excerpt _template_select _template_select nopanel true
option in the Form Field Templates section, and click Select TemplateInsert excerpt _url _url nopanel true
Task 4: Add Validation
- Set any validation, such as mandatory fields or restricting certain fields to specific characters, by selecting the Company Name field twice to ensure the inner field is selected - to check the inner field has been selected, the
window on the right should show CompanyName String Field at the topInsert excerpt _property_settings _property_settings nopanel true - On the
, scroll down the section, ValidationInsert excerpt _property_settings _property_settings nopanel true
the Mandatory box (to override the inherited setting) and toggle it onInsert excerpt _check_box_tick _check_box_tick nopanel true Insert excerpt _toggle_on _toggle_on nopanel true
the Validation Type box and choose Alpha Numerics - Extended from the drop downInsert excerpt _check_box_tick _check_box_tick nopanel true
the changesInsert excerpt _save _save nopanel true
Task 5: Setup Header and Screen Position
- Click on the header, Header 1 Dynamic, and in the
on the right, change the Default Value toInsert excerpt _property_settings _property_settings nopanel true Company Details
the changesInsert excerpt _save _save nopanel true - To see this change, close and reopen the Companies Form screen
- To reopen the screen, double click any record in the grid on the Companies List screen
the Companies Form screenInsert excerpt _unlock _unlock nopanel true - To change the positioning of the screen, select
in the toolbarInsert excerpt _property_settings _property_settings nopanel true - On the
, make the following changes:Insert excerpt _property_tabs _property_tabs name style nopanel true - Width =
400
- Height =
100%
- Top =
0
- Right =
0
- Width =
the changes and close the Companies Form screenInsert excerpt _save _save nopanel true - Close and reopen the screen if the changes do not show
Tip | ||
---|---|---|
| ||
The values for Width and Height define that the width of the screen should be 400px and the height should take up 100% of the available space - this will be responsive to the screen size of the user. The values of 0 for Top and Left define the distance from these elements, e.g. the screen will be 0px from the top and left. |
Task 6: Add Tiles to the Screen
- On the Companies List screen,
the screenInsert excerpt _unlock _unlock nopanel true - Open the
using the option in the toolbarInsert excerpt _palette _palette nopanel true - Expand the Tiles - Additional section, and drag the Double - Row tile onto the grid
Task 7: Add a Contacts Card
- Click on the
tab and expand the Card Containers sectionInsert excerpt _palette _palette nopanel true - Click and drag the Contacts card container onto the top tile
- Enter the Name,
Employees
- Enter the Name,
- Click on the Employees card container to open its
on the rightInsert excerpt _property_tabs _property_tabs nopanel true - Within the Basic Settings, click the drop down under Table
- Choose the Employees table
the changesInsert excerpt _save _save nopanel true
- On the Employees Card Container, right-click on First Name and select
Insert excerpt _attributes_add_backing _attributes_add_backing nopanel true - In the Available Attributes selector, tick first_name and click Add
- On the Employees Card Container, right-click on Last Name and select
Insert excerpt _attributes_add_backing _attributes_add_backing nopanel true - In the Available Attributes selector, tick last_name and click Add
- On the Employees Card Container, right-click on Role and select
Insert excerpt _attributes_add_backing _attributes_add_backing nopanel true - In the Available Attributes selector, tick Role and click Add
the screen to see all of the cards in the card containerInsert excerpt _lock _lock nopanel true
Task 8: Add a Background Filter
the screenInsert excerpt _unlock _unlock nopanel true - Click and drag the attribute name (column header) Company ID from the grid and drop it onto the Employees card container
- A pop up box will ask if you want to create a background filter - select Yes
- This background filter will ensure that when clicking on a record in the grid, only the employees relevant to that company will show on the contacts card
Task 9: Add a Map
- Open the
using the option on the toolbarInsert excerpt _palette _palette nopanel true - Expand the Maps section, and drag the Map onto the bottom blank tile on the screen
- Enter the Name,
Map
- Enter the Name,
Task 10: Add a Collapsible Tile (Optional)
- In the
expand the Tiles section, and drag the Collapsible (Horizontal) tile and drop it to the left side of the gridInsert excerpt _palette _palette nopanel true - Enter the Name,
Reports
, and click Confirm
- Enter the Name,
- Drag the tile on the screen to the desired location
the screen and click the chevron on the tile to open up the collapsible areaInsert excerpt _lock _lock nopanel true
the screenInsert excerpt _unlock _unlock nopanel true - Open the palette and in the Basic Layouts section, click and drag the Area - Split H onto the collapsible tile
- Name it,
Splitter,
and click Confirm
- Name it,
- Click on Header 1 and in the
on the right, change the Default Value toInsert excerpt _property_settings _property_settings nopanel true Reports
your changesInsert excerpt _save _save nopanel true - Pie chart and bar charts can be added to the tile, as required, see Creating Dashboards and Reports
Task 11: Screen Styling
- On the Companies List screen:
- click on Header 1 Dynamic and change the Default Value in the
toInsert excerpt _property_settings _property_settings nopanel true Companies
- click on the Employees card container and change the Default Value in Display Name in the
toInsert excerpt _property_settings _property_settings nopanel true Employees
- click on Header 1 Dynamic and change the Default Value in the
- Make the centre tile larger by clicking on Tile in the
Insert excerpt _layers _layers nopanel true - On the
on the right, in the Style Settings section, tick the Width box and enterInsert excerpt _property_tabs _property_tabs name style nopanel true 60%
into the box
the changesInsert excerpt _save _save nopanel true
Further Reading (optional)
For more information on the topics covered in this chapter, see the below links.
HTML Comment | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
- Adding Validation
- Making a Card Container
- How-to Create a Google Map
- Creating Dashboards and Reports
- Screen Styling
- Sizing and Positioning Screen Content
- Adding Grid Icons and Interactive Icons
- Screen Building Course (Full Course)