PhixFlow Help
11. Menus and Navigation
Create a top-level navigation menu and in-window navigation. To recap the steps in the video:
Create In-window Navigation
- Open the
Businesses
dashboard. - Open the
Contact Details
Tab. - Drag the
ContactManager
dashboard onto the header of the grid viewBusiness Contacts
. A button will appear.
Go into App Mode to test the new button. It will open the Contact Manager
dashboard.
Create a Top-level Menu
Now we'll create a top-level menu for the application.
- Open the configuration form for the application
ContactManager
. - Go to the section Menus, and add a new menu. Usually you only need one top-level menu but you can define several if you need them.
- Set the Name of the menu to
Default
. - Click Add a new sub-menu. This will appear in the header of the PhixFlow application. Set:
- Name:
Contacts Manager
- Display Name:
Manage
- Name:
- Save your changes.
- Set the Name of the menu to
- Add Menu Items to open the
ContactManager
dashboard and set:- Action:
ContactManager
- Action:
Sharing these actions between buttons and menu items is reasonably safe as they simply open a dashboard. It is unlikely that someone will add extra logic to them later.
Create the Action
- Before adding a menu item to open the
Businesses
dashboard, you need to create an action. - Open the stream configuration form for
Businesses
. - Add a new action and set:
- Name:
Open Businesses only
This is an internal name. Aim to make the name as descriptive as possible, to keep your configuration well organised. - Display Name: Businesses
This is the name that will appear in the menu. - Action Completion:
- Tick Open Post Dashboard, then Save.
- Set the Dashboard to
Businesses
. - Leave the Expression blank. This means that every time the action is run, PhixFlow will open this dashboard.
- Name:
In some workflows it is useful to set Close Parent Dashboard. This option sets the application to close an original dashboard when a user moves on to a different dashboard.
In this example we simply want to open a single dashboard every time it is clicked. If you want to implement a workflow, you might need something more complex here, to open different dashboards depending on the data being handled.
Create the Menu Item
- Open the menu configuration again and add a menu item to open the
Businesses
dashboard. Set:- Name:
Businesses
- Action:
Open Businesses Only
- Name:
- Apply all changes.
Switch to App Mode. Load your application by going to the PhixFlow icon in the top left corner of the application. Click the icon to list all available applications and select Contact Manager
.
You will see your new menu. Check this works by going to each menu item and checking that the correct dashboard opens.
Look at the URL in your browser. You will see that PhixFlow has appended the name of the application to the base URL. It has also added a direction to the default top level menu.
Application URLs
You, or the application users, can navigate directly to the application using a URL.You can either copy the URL from the browser address bar to share with users of the application, or you can construct the URL yourself.
The URL format is:
[base url]?application=[application name] |
In this example, the constructed URL is something like:
https://hosted.phixflow.com/train/start.html?application=Contact Manager |
The direction to the default top-level menu at the end of the URL is optional.
Default Actions
Set the default action on the top-level menu. The default action will run when the application is started. For this example, we will use the default action to open the Businesses
dashboard when the application starts.
- Open the top-level menu.
- Set the Default Action to be
Open Businesses Only
. - Save your changes.
Refresh the browser page to restart the application. You will see that the Businesses
dashboard opens straight away.
Next video: 12. Validate Input
Please let us know if we could improve this page feedback@phixflow.com