Show icon of an enumeration in a listview

2
In a datagrid it is possible to show the Icon of an enumeration and I want to do the same in a list view (and soon in data grid 2 as well) but it's not possible in a list view. Anybody solved this already and remembers how? This question was here before (https://community.mendix.com/link/questions/93317) and the answer was a link to a widget to solve that. Unfortunately  that link is dead now. I assumed it was a link to an Image widget but that didn't do the trick. 
asked
4 answers
1

Hi Max,

Yes I know what you want to accomplish as I was trying the same for the same case, but there is no direct solution from Mendix, I was doing some search and found out some were using the enum toggle, which is not in the App store anymore, but I found it in github, here is the link,  https://github.com/ClevrSolutions/EnumToggle/blob/master/test/widgets/EnumToggle.mpk

I didn’t try it but seems also some extra work to get the result that you need and it has a read-only mode.

answered
0


Hi Max,

I’m not aware if there is a way like the default grid, but what you can do it’s to create a simple administration page to upload an image against a configuration entity ‘image generalization’  with your enum as an attribute and make the enum value unique so you will not end up with multiple images for the same enum value and to have image view in your list inside a data view to get the configuration value depends on your enum value to show.

answered
0

 

Hi Nour,

Thanks for your answer, but what I'm looking for is a way to define the icons in the enum values itself and display the icon

like you can do in a datagrid, see example below. Off course I can make workarounds but I want to use the icons attached to the enum value.

 

 

 

 

answered
0

Thanks a lot Nour

answered