You can open other pages from many many places within pages. Pages can be opened either in the content pane of the browser or in a new pop-up window. Where the page is opened depends on the layout type of its layout. Pages with the layout type Modal pop-up or Pop-up will open as a pop-up window, and other pages will be opened in the content. If the target page layout is of the type Legacy, then the page location must be configured manually (for details, see the Location section below).
If the target page contains a data view with a page parameter data source, 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.
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.
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.
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.
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 the rest of the page.
If the layout of the target page has a layout type configured, the Location property will be unavailable. Instead, the layout type will determine how the page is opened. This eliminates the risk of accidentally modeling a pop-up form with a huge menu bar.
This property indicates where the page is shown.
|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