How can we convert an enum (like currency) to a string (like "USD")?
OmmEnum.enumValue()
gives the int value, and
OmmEnumImpl.toString()
just gives the integer as a string.
How can we obtain the enum text representation?
How can we convert an enum (like currency) to a string (like "USD")?
OmmEnum.enumValue()
gives the int value, and
OmmEnumImpl.toString()
just gives the integer as a string.
How can we obtain the enum text representation?
Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.
Thanks,
AHS
Hi @daniel.lipofsky,
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS
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?