Create Your First Two Overview & Detail Pages

Last update: Edit

1 Introduction

This how-to explains how you can create overview and detail pages in Mendix.

This how-to will teach you how to do the following:

  • Create overview and detail pages
  • Configure navigation and security

2 Prerequisites

Before starting with this how-to, make sure you have completed the following prerequisite:

3 Creating Overview & Detail Pages Automatically

To create the overview and detail pages for your data structure, follow these steps:

  1. In the domain model, right-click the Customer entity and select Generate overview pages.
  2. Select both entities in the Generate pages dialog box.
  3. Click OK.

And there you go! For each entity, an overview page and a detail page is generated. Also, an Entity_Menu snippet is created and added to each overview page.

4 Creating Overview & Detail Pages Manually

For a better understanding of Mendix Studio Pro, this section describes the manual steps for creating these pages.

4.1 Creating the Overview Page

To create a new overview page and add it to your app project, follow these steps:

  1. Right-click the module and select Add > Page.
  2. Click Responsive.
  3. Enter CustomerOverview in Page name.
  4. Select _Sidebar_FullResponsive as the navigation layout.
  5. Click Blank, then select the Blank page template** and click OK:

  6. Click Data Grid in the menu bar of the page builder to select the data grid widget:

  7. Click inside the page editor to create the data grid widget:

  8. Right-click the data grid and select Select Entity.

  9. Select the Customer entity in the Select Data Source pop-up window and click Select:

  10. Click OK to auto-fill the data grid with search fields and columns:

You should now have an overview page with a data grid like this:

4.1 Creating the Detail Page

To create a new detail page manually, follow these steps:

  1. Right-click New on the data grid on the overview page and select Generate page.
  2. Select PopupLayout as the Navigation layout.
  3. Select Form horizontal and then click OK:

  4. Right-click New on the data grid on the overview page again and select Go to page:

    You should now have a detail page like this:

5 Navigation & Security

Now create a navigation item for your overview page to start using it. For details on how to set up the navigation structure, see How to Set Up the Navigation Structure.

If you switched on security for this application, you also need to configure page access on both the overview and detail pages. For more information, see How to Create a Secure App.

6 Read More