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

How to set value of an attribute with type "string list" using rtc-sdk

I need a UI field to list multiple string value dynamic. I configurate a filed with type "stringlist", and I can add string in RTC UI. But when I using setAttriubute API to set a arrayList to a stringlist field, a exception will throw out.

I have ever using IProjectAreaHandlerList in RTC UI, the ArrayList<IProjectArea> can be set using setAttribute(id, arrayListValue), why it is not valid when use Stringlist.

Please give me an advise,  any example to set "string  list" type field value using RTC-SDK will be better.

Thanks!!

1 vote


Accepted answer

Permanent link
I think stringlist is strings separated by comma ','
silencehill wu selected this answer as the correct answer

0 votes

Comments

That was for up to 3.x. Now it is a List/collection (i.e. ArrayList of String Objects). Surprising!
There is code in https://rsjazz.wordpress.com/2015/02/09/a-rtc-workitem-command-line-version-2/

Actually, this is discussed here: https://rsjazz.wordpress.com/2015/02/24/extending-the-workitem-command-line-with-new-commands/


List<object> results = new ArrayList<object>()

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,938

Question asked: Oct 18 '15, 1:03 p.m.

Question was seen: 2,782 times

Last updated: Oct 19 '15, 9:32 a.m.

Confirmation Cancel Confirm