How can I use single objects in widgets properties?

0
I’m having a widget with a property like this:  And as you see in the xml file, I have to get an object as a List because I couldn’t find a way to directly use a single object. I do that by making use of a microflow.  What can I do to get the property of the widget but as a single object? 
asked
1 answers
1

Hi Marcian,

As per the pluggable widgets documentation by Mendix, the datasource type has to be of type list:

https://docs.mendix.com/apidocs-mxsdk/apidocs/pluggable-widgets-property-types#datasource

Also, if you change the type of object, it would require a change in the logic already built within the widget to ensure that it works as expected. Though, looking at the doc it does not seem possible for pluggable widgets.

If its a widget based on Dojo, then I’m not sure.

Hope this helps!

answered