Migrating reference selector with a Select Page to React Client

0
Hi. I can't find anything like Select Page in the Combo Box widget. Inline search in the Combo Box is not viable because the table is huge and some searchable columns should be in associated entities. Does making this combo box readonly and emulating a select page using a regular page with a nanoflow "select" button ok?
asked
2 answers
0

Something like that, yes. It's another old feature that Mendix seems to have overlooked or ignored. Depending on your use case you could also start with the reference. Like if you're creating an account and need to pick from a huge person table, you could start with a page to find the person and then create the acocunt, set the association and show a second page to fill in the other fields. Or have a "Create account" button in a person overview. Instead of creating the account first and then refactor the old reference selector on the new account page. But mostly yeah, you're going to have to create dedicated select pages that are not reusable anymore. Unless I'm missing something too.

answered
0

Hi Ilya,

You don't need to make the Combo Box read-only and simulate the old Select Page behavior.

For the React Client, I would recommend separating the display of the selected reference from the selection process.

Recommended approach: Custom selection page

1. Display the current selection

Inside your Data View, display the caption or name of the currently associated object using a Text widget or a read-only field.

Add a Select button next to it.

2. Create a selection page

Create a page containing a Data Grid 2 or Gallery with:

  • A Database/XPath data source for the selectable entity.

  • Text filters for searching.

  • Any additional filters required by your business logic.

  • A Select action for each row.

3. Open the selection page

Configure the Select button to open the selection page using a Show Page action.

Pass the current context object to the page so the selected reference can be updated.

4. Update the association

When the user selects a record, execute a microflow or nanoflow that:

  1. Receives the current context object and selected record.

  2. Changes the association to the selected record.

  3. Refreshes the context object in the client.

  4. Closes the selection page.

For example:

Parent entity: Order
Reference: Order_Customer
Selectable entity: Customer

The selection flow would be:

Order Edit Page
       |
       v
Click Select Customer
       |
       v
Customer Selection Page
       |
       v
Search / Filter Customers
       |
       v
Click Select
       |
       v
Set Order_Customer association
       |
       v
Close Page
       |
       v
Display Selected Customer

5. Handle cancel and clear actions

Add a Cancel button to close the page without modifying the association.

If the reference is optional, provide a separate Clear button to remove the existing selection.

Why I recommend this approach

  • Reproduces the familiar Select Page user experience.

  • Supports advanced searching and filtering.

  • Avoids relying on Combo Box dropdown behavior.

  • Keeps the selection logic reusable.

  • Works with standard React Client page and microflow functionality.

Important: For a reference set (many-to-many association), use a multi-selection pattern instead of assigning a single object.

If you want to preserve the exact Reference Selector appearance, you can style the display field and Select button together using Atlas UI classes.

This is not a built-in Combo Box Select Page option; it is a custom page-based implementation.

Hope this helps! If you find this answer helpful, please mark it as the accepted answer.

answered