Versions Compared

Key

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

Insert excerpt
_Banners
_Banners
nameactionflow
nopaneltrue


Excerpt
namemain

Startup Actions

Insert excerpt
_startup
_startup
nopaneltrue
 are Actionflows that run when an application is first opened. Example uses:

  • Opening a landing screen
  • Opening a navigation menu bar

Configuring Startup Actions

Adding a Screen to the Startup Action

  1. Open an application
  2. On the 
    Insert excerpt
    _screen_home
    _screen_home
    nopaneltrue
     home page, right-click on a screen
  3. Select
    Insert excerpt
    _startup_open
    _startup_open
    nopaneltrue
    1. If a Startup Action already exists, this screen will be added to it
    2. If no Startup Action exists, one will be created
Tip

Multiple screens can be added to the Startup Action.

Removing a Screen from the Startup Action

  1. Open an application
  2. On the
    Insert excerpt
    _screen_home
    _screen_home
    nopaneltrue
     home page, right-click on a screen
  3. Select 
    Insert excerpt
    _startup_IconOnly
    _startup_IconOnly
    nopaneltrue
     Remove from the Application Startup Action.

Viewing Existing Startup Actions

  1. Open an application
  2. Click on the 
    Insert excerpt
    _home
    _home
    nopaneltrue
     button in the header bar
  3. Select 
    Insert excerpt
    _startup
    _startup
    nopaneltrue
     to see the current active Startup Actions for your application
    1. Image Modified
  4. The icons indicate the defaults set:
    1. Image Modified indicates a default desktop Startup Action
    2. Image Modified indicates a default mobile Startup Action
  5. Double-click on an action to view more details
  6. New Startup Actions can be added by pressing 
    Insert excerpt
    _addIcon
    _addIcon
    nopaneltrue

Worked Example

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

In this example, we are using:

  • Home screen containing text and an image - this screen was created using the Landing Screen 1 template
Tip

If you are completing this chapter as part of the Actionflow course and using a training instance, this data has already been pre-loaded into the Actionflow Foundation ApplicationFor this example, we'll be working on the Home screen.

We want to configure a message on the Home screen to display the user's full name when they open the application.

Configure the Startup Action

  1. Open the Startup Actions for the application by clicking on the 
    Insert excerpt
    _home
    _home
    nopaneltrue
     button in the header bar
  2. Select 
    Insert excerpt
    _startup
    _startup
    nopaneltrue
     to see the current active Startup Actions
  3. Double-click Default Menu to open the Startup Action 
    Insert excerpt
    _property_settings
    _property_settings
    nopaneltrue
  4. Click on the Actionflow link to open the Actionflow
  5. On the Actionflow canvas are the two screens that open when the application starts
  6. Click on the message 
    Insert excerpt
    _action_calculate
    _action_calculate
    nopaneltrue
     action to open its 
    Insert excerpt
    _property_settings
    _property_settings
    nopaneltrue
  7. Double-click on the Output Attribute, pfMessage, to open its 

    Insert excerpt
    _property_settings
    _property_settings
    nopaneltrue
     and make the following changes to the Expression:


    1. Code Block
      themeEmacs
      _user.firstName + " " + _user.lastName


      Expand
      titleCheckpoint


  8. Close the Actionflow and reload the page to run the Startup Action