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

okay, I think that's right. But, I have trouble finding the technique to extract the label from this code ... is it possible to help me? thanks you in advance

What are you trying to extract. I believe this is a UI page, You need to just add the getDisplayValue() within your html tags to fix it

<td> $[inc.state.getDisplayValue()] </td>

I am not clear on what is your current issue?

yes, justly, I tried it . it doesn't work !... See the result of capture, below. and I look for the solution to check the datas of state in a table , named choice . But I can't to open it because I think this table is reserved for an administrator team ! So, I m in the impasse ... Why want I to check the table choice ? because, I think there are the records of parameters : 1 = open, 2 = close, etc . If it is this, I will try to find a module to extract a label of this code ....

Bingo ! I found it !... it works now . In fact, it is a size to regulate !... $[inc.state.getDisplayValue()] is good . You are reason ! Thank you very much to help me it !. Sincerely

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

Thanks!