It's all about the answers!

Ask a question

How do I Derive Calculated values using Custom Attributes

Sivarajah Rajeswaran (15212) | asked May 18 '16, 2:02 a.m.
edited May 24 '16, 11:33 p.m. by David Lafreniere (4.8k7)
I referred to this article to findout how to use calculated values in WIs

In Listing 8 , it tell me what the names are for in-built attributes but I need a similar listing for custom attributes, where can I get this from

One answer

permanent link
Ralph Schoon (62.0k33643) | answered May 18 '16, 2:12 a.m.
edited May 18 '16, 2:14 a.m.
When specifying a custom attribute, you have to provide an ID e.g. my.custom.string. You basically pass the id as string in getValue()/getLabel() calls. E.g.

var val = workItem.getValue("my.custom.string")

You should look up the ID's in the Web UI (project area admin).

Lab 4/5 for more details. 
Also read

Your answer

Register or to post your answer.