Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Introduction
Welcome to the Actionflow Fundamentals. In this chapter we will learn about all the key techniques and principles to create our Actionflows in PhixFlow which allow us to interact with our data..
Concepts
To find out more about the key concepts for ActionFlows Actionflows before you take the course below, or simply to refresh your memory, see Understanding Actionflows.
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: Change the 'Add Customer' Header
- On the Companies List screen you created in 3. Screens Fundamentals, click the Add button under the grid
- The Company Form screen will open
- Right-click to
the screen and click on the header, Company DetailsInsert excerpt _unlock _unlock nopanel true - On the
, change the Default Value toInsert excerpt _property_tabs _property_tabs nopanel true New Customer
the changesInsert excerpt _save _save nopanel true
the Company Form screenInsert excerpt _close _close nopanel true
Task 2: Create an Actionflow for the 'Edit Customer' Header
- Right-click on the Edit button under the grid
- Select
Insert excerpt _actionflow_display _actionflow_display nopanel true - On the Actionflow, in the toolbar, click and drag a
Node onto the canvasInsert excerpt _actionflow_calculate _actionflow_calculate nopanel true - Name it,
Details
- Press Create Action
- Name it,
- Move the
Node into place between the two nodes on the canvasInsert excerpt _actionflow_calculate _actionflow_calculate nopanel true - To do this, click and drag the
Node onto the CompaniesForm wire between the two nodes on the canvas until aInsert excerpt _actionflow_calculate _actionflow_calculate nopanel true
icon appears - drop the Calculate node onto this iconInsert excerpt _add_icon _add_icon nopanel true
- To do this, click and drag the
Task 3: Configure the Input Mappings
- Under Connections, click on the input wire
- The
window will open:Insert excerpt _action_connector_mappings _action_connector_mappings nopanel true - Drag the CompanyName attribute from the left (
Companies view) to the right (Insert excerpt _view_show_icononly _view_show_icononly nopanel true
Connection point)Insert excerpt _connection_point_interface_icon _connection_point_interface_icon nopanel true - Press Save
- Drag the CompanyName attribute from the left (
- On the Actionflow canvas, select the in wire, between the input node and Calculate node
- The
window will open:Insert excerpt _action_connector_mappings _action_connector_mappings nopanel true - Drag the CompanyName attribute from the left (input) to the right (Calculate node)
- Press Save
- This maps the CompanyName attribute into the calculate node so it can be used in the calculation
Task 4: Setup the Calculate Node
- Click on the Details
Node to open itsInsert excerpt _action_calculate _action_calculate nopanel true
on the rightInsert excerpt _property_settings _property_settings nopanel true - In the Output Attributes section, click
Insert excerpt _add_icon _add_icon nopanel true - In the New Calculate Attribute window, add:
- Name:
pfTitle
- Expression:
"Editing: " + in.CompanyName
Expand title More information on this expression Tip In Expressions, quotation marks, " and ", are used to denote strings. Strings are characters (e.g. letters, numbers, spaces or special characters) that PhixFlow interprets as text.
You can see the attributes you have mapped into the Calculate Node after typing
in.
- Name:
- Save all changes
- In the New Calculate Attribute window, add:
- Pass this calculated value back to the screen by selecting the CompaniesForm wire between thethe
Node and theInsert excerpt _action_calculate _action_calculate nopanel true
Open Edit Form NodeInsert excerpt _action_screen_icon _action_screen_icon nopanel true - The
window will open:Insert excerpt _action_connector_mappings _action_connector_mappings nopanel true - Drag the pfTitle attribute from the left (Calculate node) on top of the Header1Dynamic attribute on the right (Companies edit form)
- Press Save
- See the changes in action by pressing the Edit button on the Companies List screen to open the Companies Form
Task 5: Setup Validation
Note | |||||||||
---|---|---|---|---|---|---|---|---|---|
This task is only necessary if you are using PhixFlow version 10 or older. Users of PhixFlow version 10.1 and beyond do not need to complete this task because the Validate Before Running option on the Save Actionflow is toggled on by default.
|
|
|
|
|
|
If you are using PhixFlow version 10 or older, refer to Help 100 PhixFlow Help and Training. |
Further Reading (Optional)
For more information on the topics covered in this chapter, see the below links.