Startup Actions
Startup Actions
Startup Actions 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
- Open an application
- On the Screen home page, right-click on a screen
- Select Open screen on startup
- If a Startup Action already exists, this screen will be added to it
- If no Startup Action exists, one will be created
Multiple screens can be added to the Startup Action.
Removing a Screen from the Startup Action
- Open an application
- On the Screen home page, right-click on a screen
- Select Remove from the Application Startup Action.
Viewing Existing Startup Actions
- Open an application
- Click on the Home button in the header bar
- Select Startup Actions to see the current active Startup Actions for your application
- The icons indicate the defaults set:
- indicates a default desktop Startup Action
- indicates a default mobile Startup Action
- Double-click on an action to view more details
- New Startup Actions can be added by pressing
Worked Example
Here's a worked example using the School Data (available from the Learning Centre).
In this example, we are using:
- A Home screen containing text and an image - this screen was created using the Landing Screen 1 template
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 Application. For 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
- Open the Startup Actions for the application by clicking on the Home button in the header bar
- Select Startup Actions to see the current active Startup Actions
- Double-click Default Menu to open the Startup Action Properties
- Click on the Actionflow link to open the Actionflow
- On the Actionflow canvas are the two screens that open when the application starts
- Click on the message Calculate action to open its Properties
Double-click on the Output Attribute, pfMessage, to open its Properties and make the following changes to the Expression:
_user.firstName + " " + _user.lastName
Close the Actionflow and reload the page to run the Startup Action