It's all about the answers!

Ask a question

how to get all the values of a multi valued custom attribute .


lakshmi jyothsna (37118) | asked Mar 20 '18, 7:44 a.m.

 HI All,

I have a custom attribute which holds multiple values. ie. we can select multiple options  as attribute value. I want to get all those attribute values.
 Object attributeObj =  newState.getValue(attribute);
String  attrVal = null ;
if( attributeObj instanceof Identifier) {
attrVal = getLiteralByID(attribute,(Identifier)attributeObj);
}
The above snippet is for reading the attribute value if it holds single value. but in my case attribute has a option of holding multiple values. I want to get the selected values .Kindly help me. Looking forward for reply

One answer



permanent link
Ralph Schoon (63.4k33646) | answered Mar 20 '18, 7:53 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Your answer


Register or 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.