Filling a dropdown without data view or list view - Mendix Forum

Filling a dropdown without data view or list view

4

Many times, I need to pull a drop-down to select an object, if you don't know Mendix, but you are a programmer, the most normal thing is that you drag a drop-down widget and you want to select an entity from which to bring you the data. The problem is that it doesn't work like that.

 

It would be nice to be able to return a list of objects for a dropdown, without having to use a list widget (it brings several lines of objects), nor a data view (it brings only 1 object). The only way I have been able to do this is by creating a non-persistent auxiliary entity that has a relationship with the entity whose data I want to see. It works well, but I don't find it very logical to have to do all that.

 

Example: 
We drag a dropdown type widget, in its options, that lets us select the entity from which we want to fill those data and that, when we select one, we have that object selected, so we can do with it what we need.

asked
0 answers