Accessing Image of an Enumeration Value - Mendix Forum

Accessing Image of an Enumeration Value

22

When defining an Enumeration you can attach images to each entry, which is generally a nice idea.
But it should be possible to access the image of the enumeration value – either by using it in an image-widget or accessing it within an microflow like the getKey() function.

In the quiestions section this question is always answered with “use the ‘enum Toggle’ widget” – yes, this is a workaround – but better would be a direct solution.

It makes no sense to have images assigned to enum values within the enumeration definition but can’t use them.

asked
2 answers

Adding getImage next to getKey and getCaption would enable you to show the enumeration's image in Datagrid and in Datagrid2.

Now you have to add an image+visibility for each enumeration's value. Being able to set this as the value of the dynamic content would solve this problem: getImage($currentObject/Direction) + getCaption($currentObject/Direction)

 

image.png

Created

Something like this

Created