[closed] What is wrong with my JavaScript condition?
Gowra chandra varma (11●1●3●6)
| asked Jun 27 '12, 9:08 a.m.
closed Nov 05 '15, 2:25 a.m. by Ralph Schoon (63.6k●3●36●46)
Thanks for your response ! It's working fine with my requirement.
I have another query regarding read-only attributes condition. I created enumeration with name release_for (ID showing as "release") with values national,state and district. only when i select "national " (with ID "release_for.literal.l2") the dependent attributes will go read-only. I am using this script, but unable to achieve the goal. Pls help me out with the script *********************************************************************************** dojo.provide("org.example.workitems.providers.fundRelease"); dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes"); (function() { var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes; dojo.declare("org.example.workitems.providers.fundRelease", null, { matches: function(attributeId, workItem, configuration) { console.log("release"); var release = workItem.getValue(WorkItemAttributes.RELEASE_FOR); console.log(release); if (release === "release_for.literal.l2") { console.log(result); return true ; } else { return false; } } }); })(); ************************************************************************************** Thank you Varma K |
Comments
Please open new questions instead of adding more and more in threads that are already answered. Please alos accept answers that are correct and solve the problem.
The post appears to be more than 3 years old. Note sure whether the user is still waiting for an answer. :-)
Did not realize that. Will close it. I wonder why I got an e-mail notification in the first place.