How to display the value of state on string instead of an integer ?

Naples1966
Giga Contributor

I developped the module to display the scroll list of incidents, using System UI, UI pages and Widget. It works well.

there are 3 columns of incidents : Number, state and short description.It displays so well but for state, the code appears. See below 

find_real_file.png

I would like to display the string of state as "open, close, pending, etc..." instead of a code

how to do it ?

In advance, thank you for your return.

Sincerely

1 ACCEPTED SOLUTION

That's Great, Can you please mark my response as the correct answer?

Thanks!

View solution in original post

10 REPLIES 10

sachin_namjoshi
Kilo Patron
Kilo Patron

You need to use getDisplayValue() to display state display value.

 

https://developer.servicenow.com/app.do#!/api_doc?v=helsinki&id=r_GlideRecord-getDisplayValue

 

Regards,

Sachin