Skip to Content
0
Former Member
May 17, 2010 at 11:51 AM

How do I get enumeration description from simple type?

140 Views

Hello!

I want to display the value of a simple type in a table and display the description in a tool tip for the cell, how do I do that?

I'm using Web dynpro for java 7.0 ehp1.

I'm using an enumeration with 5 possible values with corresponding descriptions.

If I use a (read only) dropdownByKey the description is shown in the drop down, but I only want to show it as a tooltip since it takes up some screen space.

I would like to use a textview, is there a simple way to get the description as a tooltip? I thought about doing a calculated attribute that gets the description but I'm not sure about how to do it or if its the easiest way.

Thank you for any help!