Versions Compared

Key

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

Insert excerpt
_Banners
_Banners
nameactionflow
nopaneltrue

Custom Confirmation Messages

Image Removed

Custom confirmation messages are useful for displaying extra information that may help the user make a decision to proceed or go back. Bespoke messages can be added to confirmation screens using dynamic text components to display information, such as, names or totals.

Panel
borderColorgrey
borderWidth2
borderStyledashed

The below text is taken from 1.13 Confirmation Message Configuration.

Insert excerpt1.13 Confirmation Message Configuration1.13 Confirmation Message ConfigurationnameCreateConfirmScreennopaneltrue

Configuring Custom Messages

  • On your confirmation screen, add dynamic text and static text components, as required, to create your message
    1. Image Removed
    2. In this example, a number of static and dynamic text components have been used to create a message where the two company names can be dynamically mapped onto the screen
  • Open the Actionflow containing the Confirmation Insert excerpt_action_phase_action_phasenopaneltrueWithin the Confirmation Insert excerpt_action_phase_action_phasenopaneltrue, map the attributes from the initiator screen onto the dynamic text components, e.g. company nameCreate counts by configuring lookups to additional data, then using countElements within an Output Attribute on a  Insert excerpt_action_calculate_action_calculatenopaneltrue action
    1. See below worked example for full details on how to do this

    Configuring Multiple Confirmation Buttons

    On your confirmation screen, additional buttons can be added and configured with an Action Method of Other and an Action Type of Confirmation on their 

    What are Exclusion Groups?

    Exclusion Groups are used to group Actionflows and limit their ability to run at the same time.

    Where multiple Actionflows have the same exclusion group, only one Actionflow will be able to run at any one time. Attempting to run a second Actionflow, with the same exclusion group, will return a warning message and the Actionflow will not run. This applies whether the Actionflow is run manually or automatically using a schedule.

    Image Added

    Exclusion groups are evaluated before any Actionflows are started. When an Actionflow with an exclusion group is triggered, if no other Actionflow with the same exclusion group is already running then the Actionflow will continue. The action will be considered to be using this exclusion group from this point until the Actionflow has completed.

    Setting Exclusion Groups

    1. Open an Actionflow and open its
      Insert excerpt
      _property_tabssettings
      _property_tabssettings
      nameaction
      nopaneltrue
      On the Actionflow for the action, e.g. delete, ensure a Confirmation Phase is added before the Processing Phase, and that the Confirmation Phase contains an  Insert excerpt_action_screen_action_screennopaneltrue action for the confirmation screenRight-click on the  Insert excerpt_action_screen_action_screennopaneltrue node and choose  Insert excerpt_mappings_configure_mappings_configurenamebuttonnopaneltrue
    2. Create mappings for each confirmation button and click Confirm Mappings
    3. Hover over the  Insert excerpt_action_screen_action_screennopaneltrue node to see the additional output connectionsImage RemovedUnder Basic Settings, populate the Exclusion Group field with any text to indicate the group
      1. This field is case insensitive and can take any free text
    4. Repeat this with other Actionflows to add them to the same Exclusion Group

    Image Added

    Worked Example

    Here's a worked example using the Company Data (available from the Learning Centre).

    In this example, we are using:  

    • Company Management screen containing a grid of the Companies data and a card container of their associated Employees - this screen was created using the Multi-Tile template
    • Company Merger Pop up screen containing:
      • two manual drop down fields of the company name's of the companies to be merged
      • two string fields showing the company ID's of the companies to be merged
      • a button to initiate the Actionflow - this screen was created using the Tile no Buttons template
    • A Company Merger Confirmation screen containing a multiple static and dynamic text components, and buttons - this screen was created using the Confirmation template
    • A Company Order Form screen containing form fields for the Orders A Company Orders screen containing two grids of the Orders and OrderLines data - this screen was created using the Edit Form Multi-tile template
    Tip

    If you are completing this chapter as part of the Actionflow course and using a training instance, the data and screens have already been pre-loaded into the Actionflow Advanced Application. For this example, we'll be working on the Company Merger ConfirmationOrders screen.

    Prerequisites

    For

    Stop Multiple Processes Running While Performing Data Import

    In this example, we'll add a custom confirmation message to a company merger Actionflow. If you have not completed 3.03 Bulk Update Action Configuration, expand the section below and follow the steps to create the company merger Actionflow.

    Expand Insert excerpt3.03 Bulk Update Action Configuration3.03 Bulk Update Action ConfigurationnameBulkUpdateExamplenopaneltrue

    Example 1: Custom Merger Message

    In this example, a company acquisition screen requires a custom confirmation message to show the company names, and the quantities of employees and orders that will be affected by the merge.

    Lookup Setup

  • Open the Company Merger Confirmation screen and familiarise yourself with the components available
  • Open the Actionflow on the Run Acquisition button on the Company Merger Pop up screen

    create an Actionflow to import the AdditionalCompanies_Processed data and add the Status of New to each company on that table before adding it to the Companies table. We'll add this Actionflow to an Exclusion Group with other Actionflows on the same screen so that other processes cannot be triggered while the import is taking place.

    Image Added

    Actionflow Setup

    Hover over the 
    1. Open the Company Approval Review screen
    2. Create an Actionflow on the Import button to import the AdditionalCompanies_Processed data
      1. Name: ImportCompanies 
      2. If you have completed the Actionflow Intermediate Course, chapter Analysis Action Configuration, this Actionflow setup is similar
    3. Configure an input of On Click
    4. Add a
      Insert excerpt
      _action_
      phase
      calculate
      _action_
      phase
      calculate
      nopaneltrue
       before the Processing Phase action to the canvasSetup a 
      1. Name: Confirmation 
    5. Select the CompanyMerger datasource as the Input 
    6. Map into the Actionflow the four attributes from the screen:
      1. CompanyIDBeingAcquired
      2. CompanyIDDoingAcquiring
      3. CompanyNameBeingAcquired
      4. CompanyNameDoingAcquiring
      1. Add Details
    7. Connect the 
      Insert excerpt
      _
      action_calculate
      input
      _
      action_calculate
      input
      nopaneltrue
       action  node to the Calculate action
    8. On the Calculate action, add the following Output Attribute that will be used to process the lookup data
    9. Configure lookups to retrieve the Employees and Orders for the company that is being acquired
    Expand
    titleHow to Configure the Employees Lookup
    1. update the Status of all imported companies:
      1. Name: Status
      2. Type: String
      3. Expression: "New"
    2. On the Calculate action, add another Output Attribute that will be used to add a 20 second delay into the Actionflow, this will simulate a large data import and allow time to trigger the Actionflow twice:
      1. Name: Delay
      2. Type: Integer
      3. Expression: sleep(20)
        1. This will add a delay into the Actionflow for demonstration purposes. See sleep
    3. Add a 
      Insert excerpt
      _action_
    calculate
    1. analysis
      _action_
    calculate
    1. analysis
      nopaneltrue
       action
    and choose Add Lookup

    Give the lookup a suitable name

    Click onto the canvas, then enter a suitable name for
    1. to the canvas
    2. On its Properties, in the Tables section, click the 
      Insert excerpt
      _
    action_view_action_view
    1. tables
      _tables
      nameicon
      nopaneltrue
     and choose the Employees Primary Table

    Select an Output Attribute of EmployeeID, then select Next

    For the Incoming Mappings, choose CompanyIDBeingAcquired, then select Next

    For the Outgoing Mappings, map across EmployeeID to the Calculate action, then select Confirm and create filter

    For the filter, match the CompanyID in the data to the Incoming Mapping
    1.  icon
      1. Drag across the AdditionalCompanies_Processed table from the Repository to the Analysis action properties
    2. Connect the Calculate action to the Analysis action and map across the Status attribute

      Expand
      titleCheckpoint
    Image Removed
    1. Image Added

    Expand
    titleHow to Configure the Orders Lookup

    This is configured in exactly the same way as the Employees lookup, with the following changes:


    For the 

    Table Attributes Setup

    1. On the Analysis Model, Actionflow Advanced Data, click on the table, AdditionalCompanies_Processed
    2. Double-click on the attribute, Status, and change the Expression to _context.Status
      1. This is then referring to the attribute setup on the Calculate action
        1. See Analysis Action Configuration and Internal Variables for more information on the internal variable _context 
    3. Save the Analysis Model

    Combine Data & Display 

    1. On the Actionflow, create a 
      Insert excerpt
      _action_view
      _action_view
      nopaneltrue
     choose
    1.  action with the
    Employees
    1. Primary Table

    Select an Output Attribute of Order_ID

    For the Outgoing Mappings, map across Order_ID to the Calculate action

    For the filter, match the Customer_ID in the data to the Incoming Mapping

    Expand
    titleCheckpoint

    Image Removed

    Count and Open Screen Setup

    1. Create two Output Attributes on the Calculate action that count the records being retrieved from the lookups
      Expand
      titleHow?
      1. Create an Output Attribute:
        1. Name: NumberEmployees
        2. Type: Integer
        3. Expression: countElements(emp)
          1. emp is the name of the lookup connector
      2. Create an Output Attribute:
        1. Name: NumberOrders
        2. Type: Integer
        3. Expression: countElements(ord)
      Create an output connector from the Caqlcxulate action, then clikc on the canvas to create an AdditionalCompanies_Processed, and connect the Analysis action to the View action
      1. In the Properties for the View, in the Data Retrieval Options section, set the Data Range to Latest
        1. This will ensure that this data isn't continuously added if the Actionflow is run repeatedly
      2. For the Output Attributes section, click the 
        Insert excerpt
        _
      action
      1. attributes_
      screen
      1. icon
        _
      action
      1. attributes_
      screen
      1. icon
        nopaneltrue
       action for the Company Merger Confirmation screenHover over the Company Merger Confirmation 
      1.  icon and drag across all attributes
      2. Save the properties
    2. Create a 
      Insert excerpt
      _action_
      screen
      save
      _action_
      screen
      save
      nopaneltrue
       action and click Confirm, then select anywhere on the canvas to connect to the Processing Phase
      Expand
      titleCheckpoint

      Image Removed

    Testing

    1. Return to the Company Merger Pop up screen
    2. Select two companies from the drop downs and click Run Acquisition
    3. The Company Merger Confirmation screen should appear with the details of the selected companies mapped to the screen
      1. Choose Cancel or Confirm

    Example 2: Multiple Confirmation Buttons

    In this example, we'll configure a confirmation screen for a save company action that has two confirmation buttons - one button will just confirm the save and one button will confirm the save and create a new order for the company. 

    Lookup Setup

    1. Open the Actionflow on the Save button on the Company Form
    2. Rename the Processing Phase to Save Only Phase
    3. Add a new phase after, Name: Save and Add Phase
    4. Add a new phase before the Save Only phase, Name: Confirmation
      1. Image Removed

    Confirmation Phase Setup

    1. On the Confirmation Phase, configure an input of On Click
    2. Create an to save the data to the Companies table
      1. In its Properties, in the Basic Settings section, set the Type to Insert and
        Insert excerpt
        _
      action
      1. toggle_
      screen
      1. on
        _
      action
      1. toggle_
      screen
      1. on
        nopaneltrue
       action to open the Company Form Confirmation screenRight-click on the  Insert excerpt_action_screen_action_screennopaneltrue action and choose  Insert excerpt_mappings_configure_mappings_configurenamebuttonnopaneltrue
    3. Create an additional mapping for the ConfirmAndAdd button
    4. Hover over the 
      1.  toggle on Auto Save Attributes
    5. Connect the View to the Save action and map across all attributes
      1. Image Added

        1. Note: Map the attribute, Status from the View action (not the Calculate action) and map the attribute Name to CompanyName



    Expand
    titleCheckpoint

    Image Added


    Setting the Exclusion Group

    1. Open the Actionflow 
      Insert excerpt
      _
      action
      property_
      screen
      settings
      _
      action
      property_
      screen
      settings
      nopaneltrue
       action to see the two output connections, then connect Confirm to the Save Only Phase, and ConfirmAndAdd to the Save And Add Phase 
      1. Under Basic Settings, populate the Exclusion Group field with any text, e.g. Import
      2. Image Added

    Add Actionflow to Import Button on Companies Screen

    1. Add the same Actionflow to the Import button the Company Management screen

    2. On the Save And Add Phase, configure an input of the CompanyForm datasource
    3. Map the CompanyID and CompanyName attributes into the Actionflow
    4. Set up a 
      Expand
      titleCheckpoint

      Image Removed

    Save and Add Phase Setup

    1. How?
      1. On the ImportCompanies Actionflow, open the 
        Insert excerpt
        _
      action
      1. property_
      save
      1. settings
        _
      action
      1. property_
      save
      1. settings
        nopaneltrue
       action to save data to the Companies table, ensuring Auto Save Attributes is toggled on
    2. Map the CompanyID attribute to the Save action
    3. Create an 
      1.  using the toolbar option and
        Insert excerpt
        _
      action_screen
      1. pin
        _
      action_screen
      1. pin
        nopaneltrue
       action to open the Company Order Form screenOn the Mappings between the Save and Open Screen actions:
    4. Map the CompanyName attribute from the input to the CompanyName attribute on the screen
    5. Map the CompanyID attribute from the table (not the input) to the Customer_ID attribute on the screen

      The CompanyID attribute is mapped from the table and not the input because for a new company an ID is not created until the record is saved to the table. If the CompanyID attribute was mapped from the input, it would be populated when saving an existing company but blank when creating a new company

      Expand
      titleCheckpoint

      Image Removed

    Testing

    1. Open the Company Management screen
    2. Select either Add or Edit to open the Company Form
    3. Enter/change details for a company and press Save
    4. The confirmation screen will open, choose Yes + Create Order
    5. This will save the company and open the Company Order Form populated with the company name and ID of the company just created/edited
      1.  the Actionflow tab
      2. Open the Company Management screen and drag the Actionflow icon from the pinned tab onto the Import button
        1. Image Added 
        2. This will create another instance of the same Actionflow
        3. Configure the Input of On Click 


    Testing

    1. Open the Company Approval Review and Company Management screens
    2. Ensure both screens are 
      Insert excerpt
      _lock
      _lock
      nopaneltrue
      ed
    3. Click Import on one screen then press Import on the other screen
    4. A warning message should appear

    Image Added

    Image Modified