Can a JS value provider set an enumeration list attribute?
Is it possible to use a JavaScript value provider to automatically set an enumeration list attribute with a list of values (calculated according to some conditions)?
|
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Feb 16 '17, 3:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER As Don mentions from the https://jazz.net/wiki/bin/view/Main/AttributeCustomization documentation does state what is supported and list type attributes are mentioned nowhere. I think the list types appeared in RTC after the main JavaScript work was done.
I have never been able to set any list attributes in JavaScript.
Luca Martinucci selected this answer as the correct answer
Comments
Luca Martinucci
commented Feb 16 '17, 4:03 a.m.
Actually, I suspected that JavaScript was not able to set list attributes.
|
One other answer
Try to set up a Script Based Value Set. And you need to set the attribute using this value set depend on the "condition"/attribute.
Comments
Luca Martinucci
commented Feb 16 '17, 3:01 a.m.
Donald, actually I am no trying to set a Value Set.
1
Ah...sorry for misunderstanding your question. Now you reminds me. IIRC I also had a hard time setting a value of an Enumeration List attribute. I tried CSV, JSON and other imaginable formats but all failed. You don't use a variable, the Calculated Value provider returns a "value" directly. I may give it another crack a bit later.
|
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.
Comments
similar discussion in https://jazz.net/forum/questions/209596/set-values-for-enumeration-list-programatically
Hi Don,
the discussion does not really answer my question.
I need to know ho to set the values a multi-value attribute using a JavaScript value provider.
To set a single-value attribute, the script must return its (scalar) value.
What kind of variable must be returned when the attribute to set is a multi-value list?