Versions Compared

Key

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

Insert excerpt
_Banners
_Banners
namescreen
nopaneltrue

Introduction

Startup actions are used to open specific screens when your application is opened by a user. In this chapter we will open the navigation menu and home screen.

Creating Startup Actions

  1. Open the screens home page.
  2. Right-click on the Home screen, and select 
    Insert excerpt
    _startup_IconOnly
    _startup_IconOnly
    nopaneltrue
     Open screen on Startup.
  3. An actionflow is automatically created and set to run when the application is started.
  4. Right-click on the Main Menu screen, and select 
    Insert excerpt
    _startup_IconOnly
    _startup_IconOnly
    nopaneltrue
     Open screen on Startup.

Refresh your browser and when your application loads the navigation menu and home screen will open.

Startup Action

The startup action is located in the Repository under your application:

  1. Scroll down to Startup Actions and expand it.
  2. The Default Menu contains the details, including the details of the actionflow PhixFlow setup for us in the previous step.

Edit the Startup Action

In 15. Editing Content on Screen - Part 2 we setup an home screen which included a welcome message. We will now setup the dynamic part of that message to include a users name.

  1. In the Default Menu opened in the previous section, click on the Actionflow highlight above My Application Startup...
  2. When the actionflow opens ensure the two open screen nodes are separated.
  3. Right-click on the connector between in and Open (Home), and remove it.
    1. Move Open (Home) to the right slightly.
  4. From the toolbar drag a Calculate Action, in between in and Open(Home).
    1.  Name, message.
  5. Connect in to Message, and, message to Open(Home) as illustrated below:
  6. Image RemovedImage Added
  7. Click on message to open its properties.
  8. In the Calculate Attributes click 
    Insert excerpt
    _addIcon
    _addIcon
    nopaneltrue
    . Set:
    1. Name, welcome
    2. Expression, _user.firstName
    3. Save your change.
  9. Click on the connector between message and Open(Home) to open the mappings.
    1. Drag welcome to Header2Dynamic.
      1. If you are mapping to a screen and not sure of the name of the item you are mapping to, open the screen to take a look.
    2. Click Confirm Mapping.
  10. We need to reload our application to test the change, the easiest method is to click refresh in your browser.


Check Point

In

Insert excerpt
_app_mode
_app_mode
nopaneltrue
 your application will look similar to this:

Image Added