dynamic required attribute does not work - RTC 3.0.1.1
![]()
Martina Riedel (203●2●33●41)
| asked Mar 13 '13, 1:59 p.m.
edited Apr 02 '13, 4:39 a.m. by Ralph Schoon (63.3k●3●36●46)
I am following https://jazz.net/library/article/537/ - Dynamic Required Attribute about half way down.
Whatever I do, I get errors in the ccm log (see below) and the work item just saves. This is RTC 3.0.1.1, no patches on win 2003 server, my "play" vm. I found several posts where users posted working dojo scripts and I also tried to just stick in the sample in the Attribute Customization - Condition. It shows the Class Name, so I am thinking that it reads the dojo just fine. I tried it in JKE banking and a pretty vanilla scrum project. Any ideas what I need to tweak to make it work? 2013-03-13 11:48:31,283 [ http-9443-Processor345] ERROR com.ibm.team.workitem.common - Error invoking work item filter 'com.ibm.team.workitem.valueproviders.CONDITION._CkdmQIwGEeK7UttOCWjckg' org.mozilla.javascript.JavaScriptException: [object Error] ({"Bundle-SymbolicName":"org.dojotoolkit.dojo", "path":"resources\\_base\\_loader", "name":"loader.js"}#414) at org.mozilla.javascript.gen.c2._c18({"Bundle-SymbolicName":"org.dojotoolkit.dojo", "path":"resources\\_base\\_loader", "name":"loader.js"}:413) at org.mozilla.javascript.gen.c2.call({"Bundle-SymbolicName":"org.dojotoolkit.dojo", "path":"resources\\_base\\_loader", "name":"loader.js"}) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003) at org.mozilla.javascript.gen.c2.call({"Bundle-SymbolicName":"org.dojotoolkit.dojo", "path":"resources\\_base\\_loader", "name":"loader.js"}) at com.ibm.team.rtc.common.scriptengine.environment.dojo.DojoFeature$3.call(DojoFeature.java:179) at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1862) ...... (lots more, I can post if needed) |
Accepted answer
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Mar 14 '13, 7:21 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi, this error points to some syntax error in your JavaScript condition that is so severe that it prevents the script engine from even loading the script.
I had something similar a few days ago and thought the server was wrong. Nope, I just had messed up the syntax in a way that the loader failed. Brackets? Statements outside of the scope they are supposed to be? Semicolon missing? Hard to tell. We tried to provide some guidance in this workshop Lab 5. I would suggest to check the script syntax. In my case I lazy bone did copy paste and missed that it had put an odd string outside of my inner brackets. Martina Riedel selected this answer as the correct answer
Comments Hmm. There is a "download sample" URL right there and I gave it the exact file that it saved. I can do it again. The sample file that gets downloaded should work as is, right? ![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Martina,
I still get the same error. I deleted everything and did it again with new filenames, I didn't edit the content. I saved the sample-condition.js and gave that to it unedited. I originally saved it in My Documents, but I also saved it in C:\rtc_js and in both Unix and win line endings.
This is 3.0.1.1.
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I don't know when that feature came in.
it came in in 3.0.1 according to the Library article I started out from.
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
That was long Martina.We could have saved a lot of time if you had looked into the workshop 8-p. Glad you have it working now. PS, I tend to forget it is switched off in my test repositories too....
showing 5 of 7
show 2 more comments
|
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.