Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 7 Next »

Foundation Module



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

Difficulty Level: 

  1. On the Course Management screen open the  Layers and expand the area, Screen Header
  2. Expand the area, Right, and you will see two components - a button and a dynamic text field
  3. Create an Actionflow on the button that uses the now function to insert today's date into a dynamic text field
 Questions 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?
 Helpful 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
 Reveal Answer
 Input & Action Node Setup

Setup the Input and Calculate Action

Description?

  1. Right-click on the button on the screen and choose  Add Actionflow
  2. Enter a name for the Actionflow,
    1. Name: Populate Date Field
    2. Select Confirm
  3. Select Click to Connect and for the input, choose the   On Click Action Event, then select Connect Input
  4. Click and drag the  Calculate icon from the toolbar onto the canvas
  5. Enter a name for the Calculate Action and select Create Action 
  6. The  Properties tab for the Calculate Action will open on the right
  7. In the Output Attributes section, click the  icon
  8. Enter a name for the new Output Attribute and complete the following details:
    1. Type: choose String
    2. Expression: 

      now()
    3. Then  Apply and Close
  9. Click and drag the input onto the Get Date Calculate Action
 Output Setup

Setup the Output and Write Back to the Screen

DESCRIPTION?

  1. In the Connections panel on the left, click  Add to create a new connection point
  2. Enter the following details for the new connection point:
    1. Name: out
    2. Type: choose Output
    3. Select Create Connection Point
  3. Select Click to Connect and for the output, choose the  Form datasource
    1. Select Connect Output
  4. Close the Mappings window that automatically opens
  5. Hover over the Calculate Action node and select out
  6. A red arrow will appear - click on the  output node under Connections
  7. 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
  8. Under Connections, right-click on the connector, out, and choose  Configure Mappings
  9. Drag the TodayDate attribute from the left (output connection point) and drop it onto the DateField target parameter on the right (Course Management screen)
    1. Select Save
  10. Close the Actionflow to return to the Course Management screen
  11.  Lock the screen and press the Button Date on the screen to see the Actionflow in action
    1. We 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



  • No labels