4. Actionflow Fundamentals
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 before you take the course below, or simply to refresh your memory, see Actionflows.
Video Demonstration
Watch the video demonstration, then complete the Fundamentals Tasks below.
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, UnlockCompany Details
- On the , change the Default Value to Properties tab
New Customer
- the changes Apply
- the Company Form screen Close
Task 2: Create an Actionflow for the 'Edit Customer' Header
- Right-click on the Edit button under the grid
- Select Display Actionflow
- On the Actionflow, in the toolbar, click and drag a Node onto the canvas Calculate
- Name it,
Details
- Press Create Action
- Name it,
- Move the Node into place between the two nodes on the canvas Calculate
- To do this, click and drag the Node onto the CompaniesForm wire between the two nodes on the canvas until a Calculate icon appears - drop the Calculate node onto this icon
Task 3: Configure the Input Mappings
- Under Connections, click on the input wire
- The window will open: Connector Mappings
- Drag the CompanyName attribute from the left ( Companies view) to the right ( Connection point)
- Press Save
- On the Actionflow canvas, select the in wire, between the input node and Calculate node
- The window will open: Connector Mappings
- 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 its Calculate on the right Properties
- In the Output Attributes section, click
- In the New Calculate Attribute window, add:
- Name:
pfTitle
- Expression:
"Editing: " + in.CompanyName
- 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 the Node and the Calculate Open Edit Form Node
- The window will open: Connector Mappings
- 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
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.