Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Insert excerpt
_Banners
_Banners
nameactionflow
nopaneltrue

Image Removed

Image Added Congratulations!

You have completed the Foundation Intermediate Module for the Actionflow Course and now know how to create and configure simple Actionflows with sophisticated processing logic in PhixFlow.

Next Steps

Head over to the Learning Centre to keep up-to-date with the latest courses and resources. We also have a host of how-to articles on the site designed to guide you through specific tasks and we will be adding new ones regularly. If there is a topic you would like us to cover, please get in touch and we will be happy to help, email anthonyzoe.george@phixflowbaldwin@phixflow.com.

More Courses

If you are interested in learning more about Actionflows, we have Intermediate and Advanced Modules coming soontake a look at our 3. Actionflow Advanced Module.

If you would like to learn about screen building or data analysis, and have not already done so, take a look at our Courses:

Test Your Knowledge

Coming Soon

HTML Comment
hiddentrue

Assignment #: Configure a button, that when pressed, shows today's date

Difficulty Level: Image Removed

On the Course Management screen open the Insert excerpt_layers_layersnopaneltrue and expand the area, Screen Header
  • Expand the area, Right, and you will see two components - a button and a dynamic text field
  • Create an Actionflow on the button that uses the now function to insert today's date into a dynamic text field
  • Expand
    titleQuestions to consider
    • Does this Actionflow require any data from the Course Management screen for it to run?
    • What type of Action Node can perform a function?
    • How do you write the results of the function to the text field on the screen?
    Expand
    titleHelpful Hints & Answers to the Above Questions
    • No data is required for the input
    • Use a Calculate Action to perform the function
    • You will need a create an output to write to the text field
      • The top level of the screen is called a Form
    • Remember to map all the way through the Actionflow
      • Check every connector to make sure the data you expect is being pushed through
    Expand
    titleReveal Answer
    Expand
    titleInput & Action Node Setup

    Setup the Input and Calculate Action

    Description?

    Right-click on the button on the screen and choose  Insert excerpt_actionflow_add_actionflow_addnopaneltrue
  • Enter a name for the Actionflow,
    1. Name: Populate Date Field
    2. Select Confirm
  • Select Click to Connect and for the input, choose the  Insert excerpt_actionflow_on_click_actionflow_on_clicknopaneltrue Action Event, then select Connect InputClick and drag the  Insert excerpt_action_calculate_action_calculatenopaneltrue icon from the toolbar onto the canvas
  • Enter a name for the Calculate Action and select Create Action 
  • The  Insert excerpt_property_tabs_property_tabsnopaneltrue for the Calculate Action will open on the rightIn the Output Attributes section, click the  Insert excerpt_add_icon_add_iconnopaneltrue iconEnter a name for the new Output Attribute and complete the following details:
  • Type: choose String
  • Expression: 

    Code Block
    now()
    Then  Insert excerpt_finish_finishnopaneltrue
  • Click and drag the input onto the Get Date Calculate Action
  • Expand
    titleOutput Setup

    Setup the Output and Write Back to the Screen

    DESCRIPTION?

    In the Connections panel on the left, click Insert excerpt_addIcon_addIconnopaneltrue Add to create a new connection point
  • Enter the following details for the new connection point:
    1. Name: out
    2. Type: choose Output
    3. Select Create Connection Point
  • Select Click to Connect and for the output, choose the  Insert excerpt_form_formnopaneltrue datasource
    1. Select Connect Output
  • Close the Mappings window that automatically opens
  • Hover over the Calculate Action node and select out
  • A red arrow will appear - click on the Insert excerpt_output_outputnameiconnopaneltrue output node under Connections
  • On the Mappings window, drag the attribute, TodayDate, from the left (Calculate Action) to the right (output connection point) to create an attribute on the output
    1. Select Save
  • Under Connections, right-click on the connector, out, and choose Insert excerpt_mappings_configure_mappings_configurenopaneltrueDrag the TodayDate attribute from the left (output connection point) and drop it onto the DateField target parameter on the right ( Management screen)
    1. Select Save
  • Close the Actionflow to return to the Course Management screen
  • Insert excerpt_lock_locknopaneltrue the screen and press the Button Date on the screen to see the Actionflow in actionWe can see that the Actionflow is working because it displays today's date in the format DD/MM/YY in the DateField dynamic text field