Opening Pages

3 minutes to read Download PDF Edit

In many places within pages you can open other pages. For example, the edit button of the data grid opens a page to edit the selected object.

Pages can be opened either in the content pane of the browser or in a new pop-up. Where the page is opened depends on the layout type of its layout: pages based on a layout of type ‘Modal pop-up’ or ‘Pop-up’ will be open as a pop-up, other pages will be opened in content. If the target page layout is of type ‘Legacy’, then the page location must be configured manually (see Location section below).

If the target page contains a data view with data source “caller of the page”, then an object for this data view must be passed to the page while opening. What object to pass is configured automatically based on the arguments available for the widget opening the page (see available arguments for microflows for details).

Generally speaking, opening a page in content will trigger a full reload of the entire browser contents. However, if the new page uses the same layout as the old one, only the page contents will refresh. The layout will retain its state. This allows for navigation without any unnecessary overhead or loss of data.

Properties

Mendix allows for a number of methods for opening a page. Each of these methods share a set of properties that determine the conditions in which the page is opened.

Page

This is the page that is shown to the end-user. There can be a number restrictions on the page, depending on the place from which the page is opened. For example, a page that is opened by the Create button must contain a data view that is connected to the same entity as the grid.

Page title

By default the title of the page is taken from the title property of the selected page. You can replace this title with a custom title if necessary.

Location

This property indicates where the page is shown.

Value Description
In content The page replaces the page that is currently in the content pane of the browser.
Pop-up The page is shown as a non-blocking pop-up overlaying the page you were looking at. Non-blocking means that you can still use the underlying page .
Blocking pop-up The page is shown as a blocking pop-up. Blocking means that you cannot use the underlying page until you close the pop-up.

Default value: Pop-up