It's all about the answers!

Ask a question

Configuring dynamic read-only attributes doesnt work


Nicolás Rodríguez (3142325) | asked Jul 25 '12, 11:17 a.m.
retagged Jul 25 '12, 9:00 p.m. by Millard Ellingsworth (2.5k12431)
Hi

I followed the video tutorial of Configuring dynamic read-only attributes http://www.youtube.com/watch?v=9g8GHz6CxKQ and its works in RTC v4 Client, but when i m gonna test it on an explorer like FireFox, internet Explorer or Google Chrome, doesnt work, i verified that the conditional script is used by message  in the console,
any clues about this problem?

I have the RTC v4 isntalled in a windows server 2008

Comments
Gabriel Enriquez commented Jul 25 '12, 9:35 p.m.
JAZZ DEVELOPER

This feature supports both type of clients (Eclipse and Web UI). Could you give us more input on your specific configuration? e.g., script, RTC 4.? (release, milestone, etc).

One answer



permanent link
Nicolás Rodríguez (3142325) | answered Jul 30 '12, 9:36 a.m.
 Hi,

I´m using RTC 4, the release.

Well, actually it's working, but the effect of the readonly doesn't appear in the web UI, I can modify the attribute, but dont let me save it, differente from the eclipse client, where i can´t even  modify the attribute, i don´t know if it is possible to get the same behavior of the eclipse client

here is my script

dojo.provide("com.ibm.reestimacion");
(function() {
    dojo.declare("com.ibm.reestimacion", null, {
        matches: function(workItem, configuration) {
            
var valueEnum=workItem.getValue("re-estimacion");

console.log("El valor es  "+valueEnum);
if(valueEnum=="re_estimacion.literal.l2"){
console.log("check box true");
return false;
}else{
console.log("check box false");
return true;
}

        }
    });
})();

Thanks
	

Your answer


Register or to post 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.