How to get Enum caption in java script

0
Hi, I have gone through the API docs for the enum. it says to use getEnumCaption(), but I don't know how to write the code please give some sample code 
asked
1 answers
0

Hi Vijayakumar,

I don’t know getEnumCaption(), but I use getCaption().
 

My enum Language:

ENUM_Language

Caption      Name

Dutch          nl_NL

English        en_US

getCaption(ENUM_Language.nl_NL)
=> Dutch         

getCaption(ENUM_Language.en_US)
=> English   

suc7, Pascal    

answered