This activity can be used in both Microflows and Nanoflows.
This action is ignored and does not work when a microflow is called from an offline native or hybrid app. For more information, see the Microflows section of the Offline-First Reference Guide.
With this activity, you can show a selected page to an end-user.
You can directly drag a page from the Project Explorer into your microflow:
There are two sets of properties for this activity, those in the dialog box on the left, and those in the properties pane on the right:
The Show page properties pane consists of the following sections:
3 Action Section
The Action section of the properties pane shows the action associated with this activity.
You can open a dialog box to configure this action by clicking the ellipsis (…) next to the action.
You can also open the dialog box by double-clicking the activity in the microflow or right-clicking the activity and selecting Properties.
3.1 Object to Pass
An object that will be passed to the page that is opened. This object will be used by data views with a page parameter data source.
To create a new page that Show page activity will show, click the Select button > New. If you have selected an Object to pass, Studio Pro will automatically create a data view to edit that object.
3.3 Page Title
By default the title of the page is determined by the page title property of the page. You can replace this title with a custom title if necessary.
This feature allows you to re-use the same page for the New and Edit buttons of a data grid. By simply setting the titles to, for example, New Customer and Edit Customer, you can save yourself the trouble of duplicating pages.
3.4 Close Pages
This option is only available for native mobile and was introduced with Mendix Studio Pro v8.14.
Often you need to have control of page history, for example to show the correct page when a user presses the hardware back button on Android. These types of actions generally will only close a single page in the current stack. Close Pages provides more control over this behavior. We define relevant terms as follows:
- source page: The page you are navigating from
- target page: The page you are navigating to
|None||Do not remove any pages from history. This is the default behavior.|
|Single||After navigating to the target page, remove the source page from history.|
|Multiple||After navigating to the target page, remove the source page and one or more pages before it from history. Configure the total number of pages removed using an expression.|
|Clear history||Prevent the user from navigating back altogether. This is especially useful when navigating away from a login or tutorial flow.
In the page editor and in nanoflows as well as in native apps, this option can only be used in combination with target pages that are included in the bottom bar configuration (if the layout has a bottom bar) and that have a default layout type (meaning, not a pop-up).
4 Common Section
For more information on properties in this section, see Common Properties.