How can I create a microflow that brings data from an enumeration on one page to a different page?

0
I want to display the data in a numbered list on another page so that the user can select a date from a list and this result is displayed on another page.
asked
2 answers
1

Hi Keuris Ogando Piron,



You can’t pass an enumeration directly between pages. Instead:

  1. Handle the selection with a microflow (on the first page).
  2. Store the selected enumeration value:
    • Either in an attribute of an entity, or
    • Pass it as a microflow parameter.
  3. Navigate to the second page, passing that object/value.
  4. On the second page, display the data using the passed object, and show it in a numbered list (list view with index).

This is the standard way to show a selected enum result on another page in Mendix.


answered
0

Hi,


Enumerations in Mendix are not data objects, so you cannot “retrieve” or pass them directly between pages like a list. The correct approach is to store the selected enum value in an object and pass that object between pages.

1. Create a helper entity

Create an entity (for example: SelectionHelper) with:

  • Attribute: SelectedDate (Enumeration)

2. First page (selection page)

  • Create a non-persistent object of SelectionHelper
  • Show enum values using:
    • Dropdown / Radio buttons / List (based on enum)

User selects a value → stored in SelectionHelper/SelectedDate

3. Navigate using microflow

On button click:

  • Call microflow
  • Pass the SelectionHelper object
  • Use “Show Page” → pass same object to next page

4. Second page (display page)

  • Add a Data View with SelectionHelper
  • Display:
$SelectionHelper/SelectedDate

If you want a “list-like” enum selection

Since enums are static, if you want to show them as a list:

  • Either use a Dropdown (recommended)
  • Or create a mapping entity (if you need numbering/custom labels)

Important note

You cannot:

  • Retrieve enumeration like database data
  • Pass enum alone between pages

You must always pass it via an object (helper entity).

Store the selected enum value in a helper object and pass that object between pages using a microflow. That’s the standard and correct way to handle enumeration-based selection across pages in Mendix.



answered