It's all about the answers!

Ask a question

How to set Value for stringList in RTC JS


WenJia Zhang (113) | asked Jun 30 '20, 11:17 p.m.
Is there anyone can help that How to set Value for stringList in RTC JS?
I use workItem.setValue(), it works , but there are error message in logs, so do you know any other way to do that?

Comments
Ralph Schoon commented Jul 01 '20, 3:29 a.m. | edited Jul 01 '20, 3:43 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

What error? What do you return?


WenJia Zhang commented Jul 01 '20, 4:22 a.m.
Hi Ralph
Eran just send you email yesterday about this . and I ask that is there any other method to set Value for String List Type attribute
thx


Ralph Schoon commented Jul 01 '20, 4:30 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I am not even aware that there is a setValue() in the Attribute Customization API.
The only legal way, as far as I know, to use attribute customization to set a value is to use a calculated value and to return that value. I have never been able to return anything as a value list or array in a calculated value. My guess was, that the JavaScript API is only configured for the supported items and not for itemLists.

If you want others to review, you should at least provide some example code for what you do and the errors you see in the log.

WenJia Zhang commented Jul 02 '20, 1:44 a.m.
Ok ,
thx

Be the first one to answer this question!


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.