Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
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
- Open the screens screen's home page.
- Right-click on the Home screen, and select
Open Open screen on Startup.Insert excerpt _startup_IconOnly _startup_IconOnly nopanel true - An actionflow is automatically created and set to run when the application is started.
- Right-click on the Main Menu screen, and select
Open Open screen on Startup.Insert excerpt _startup_IconOnly _startup_IconOnly nopanel true
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:
- Scroll down to Startup Actions and expand it.
- The Default Menu contains the details, including the details of the actionflow PhixFlow setup for us in the previous step.
- We will review this in the next step.
Edit the Startup Action
In 15. Editing Content on Screen - Part 2 we setup an a home screen which included a welcome message. We will now setup the dynamic part of that message to include a users name.
- In the Default Menu opened in the previous section, click on the Actionflow highlight link above My Application Startup...
- When the actionflow opens ensure the two open screen nodes Open Screen action are separated .as illustrated below:
- Image Modified
- Right-click on the connector between in and Open (Home), and remove it.
- Move Open (Home) to the right slightly.
- From the toolbar drag a Calculate Action action, in between in and Open(Home).
- Name,
message
Message
.
- Name,
- Connect in to Message, and, message Message to Open(Home) as illustrated below:
- Image Modified
- Click on message Message to open its properties.
- In the Calculate Attributes click
. Set:Insert excerpt _addIcon _addIcon nopanel true - Name,
welcome
- Expression,
_user.firstName
- Save your change.
- Name,
- Click on the connector between message Message and Open(Home) to open the mappings.
- Drag welcome to Header2Dynamic.
- If you are mapping to a screen and not sure of the name of the item you are mapping to, open the screen to and take a look in the layers pane.
- Click Confirm Mapping.
- Drag welcome to Header2Dynamic.
- We need to reload our application to test the change, the easiest method is to click refresh in your browser.
Home Button Update
We now need to go and update the actionflow behind our Home button to include the same calculate and message. Repeat the steps above to apply the welcome message to the home screen when tit it opens using the Home button.
Check Point
In
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|