It's all about the answers!

Ask a question

Read only field after entering the value.


kirti dalavi (154) | asked Jul 24 '20, 9:50 a.m.

 Hello,

I am trying to make the field read only after one time fill. I have written below script for this but it not working fine. after this script the field will get read only itself. not able to add any value in that field.


dojo.provide("com.ibm.Condition.StartDateBA");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
    dojo.declare("com.ibm.Condition.StartDateBA", null, {

        matches: function(workItem, configuration)
        {
        var workitem = com.ibm.team.workitem.api.common.WorkItemAttributes;
var StartDateBtoA=workItem.getValue("com.smit.manageProjectList.workitem.SMIT_Projects.attribute.StartDateBtoA");
if(StartDateBtoA !==""){
        return true; // Nothing to do
        }
       
           
        }

    });
})();

Thank you,
Kirti
9156951041

One answer



permanent link
Ralph Schoon (63.1k33645) | answered Jul 24 '20, 1:17 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The "question" is not even a valid question as it lacks a questionmark and is a statement.
The script code is not a valid script  as it does not always return a value.

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.