How can we convert an enum (like currency) to a string (like "USD")?
OmmEnum.enumValue() gives the int value, and
OmmEnum.enumValue()
OmmEnumImpl.toString() just gives the integer as a string.
OmmEnumImpl.toString()
How can we obtain the enum text representation?
Hi @daniel.lipofsky
Try something like this (taken from the series 300 example: ex332_Dictionary_Streaming).
System.out.println(fieldEntry.hasEnumDisplay() ? fieldEntry.enumDisplay() : fieldEntry.enumValue());
Thank you, that is exactly what I want. I wonder why they don't mention it in the Developer's Guide?