Populate a dropdown list with email of the accounts of a certain user role

0
I would like to populate a dropdownlist with the emails (of a certain user role), is this possible?
asked
2 answers
2

Hi Nicole,

In order to do this you cannot use the regular dropdown, since you cannot choose the selectable objects. To achieve this you can do the following.

- Create an association from the entity you are working with to account

- Use a reference selector on the association entity_account. Set Email as attribute.

- Open the reference selector widget and go to selectable objects. If you need the emails of 1 user role you can set the selectable objects with an xPath, otherwise use a datasource microflow.

Let me know if this helped!

answered
3

Hi,

 

Dropdowns can only be used with attributes of type enumeration.

https://docs.mendix.com/refguide/drop-down

You can use a reference selector of a association with your Account entity

https://docs.mendix.com/refguide/reference-selector

 

answered