Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Getting value of enum id value in javascript

 I am inside a javascript validation function, 


validate: function(attribute, workItem, configuration) ;

I get the enum id with 
var enumId = workItem.getValue("Same validation level");

How can i get the String associated with the enumId? 




0 votes


Accepted answer

Permanent link

workitem.getLabel("Same validation level");

Marcelo Bilezker selected this answer as the correct answer

0 votes


One other answer

Permanent link

 

getLabel("zzz")... so Obvious,,,, Thanks!

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,943
× 369
× 152

Question asked: Aug 25 '21, 6:20 p.m.

Question was seen: 1,525 times

Last updated: Aug 25 '21, 7:56 p.m.

Confirmation Cancel Confirm