It's all about the answers!

Ask a question

How to get the value of a custom attribute in RTC

Alicia McPherson (7131418) | asked Jun 07 '12, 3:01 p.m.
retagged Jun 07 '12, 3:58 p.m. by David Olsen (5237)
Hi ,

I'm using RTC How can I get the value of a custom attribute?

I followed the tutorial on the wiki, but I'm getting an error.

I added the parameter in the Process Configuration Source

<parameters crNumberId="cr"/> // cr is the attribute id

And used the following script to get the value of the custom attribute:

var crId = configuration.getChild("parameters").getStringDefault("crNumberId", "");
return workItem.getValue(crId);

I got the following errors:

Error executing script myfilename.js
unable to find file: ./../.js


One answer

permanent link
Ralph Schoon (62.9k33645) | answered Jun 11 '12, 9:33 a.m.
Hi, the script name in the error message looks dubious.

"Error executing script myfilename.js
unable to find file: ./../.js"

I can't remember I have seen something like this.

Please make sure that scripting is enabled in the Advanced Properties of the CCM application. If that is the case, try to upload your script again.

In general please try first with one of the examples you can download in the project area in the configuration dialog. Use console.log() to get some feedback in the server log (or the eclipse log). Once this is successful, try with your own script.

Your answer

Register or to post your answer.