RITM Variables Read Only after state has become "close complete"

craigzeleznick
Kilo Contributor

As the title states, is there a specific way that one a request is submitted and the RITM state is changed to "Closed Complete" that all RITM variables become read only?

The reason i am asking is because we have ran into issues where the business users have been changing fields after the request has been marked as complete and complaining that the request wasn't properly performed.

20 REPLIES 20

SanjivMeher
Kilo Patron
Kilo Patron

Hi Craig,



You can use below script to make it readonly.



function onLoad(){


    try{


          //Get the 'Variables' section


          var ve = $('variable_map').up('table');


          //Disable all elements within with a class of 'cat_item_option'


          ve.select('.cat_item_option', '.slushselectmtm', '.questionsetreference').each(function(elmt){


                elmt.disabled = true;


          });


          //Remove any reference or calendar icons


          ve.select('img[src*=reference_list.gifx]', 'img[src*=small_calendar.gifx]').each(function(img){


                img.hide();


          });


          //Hide list collector icons


          ve.select('img[src*=arrow]').each(function(img){


                img.up('table').hide();


          });


    }


    catch(e){}


}



Please mark this response as correct or helpful if it assisted you with your question.

Where exactly would i enter this script at? Would this go on the associated workflow or inserted into each form?


It is a client script. Write an Onload client script on your table.



Please mark this response as correct or helpful if it assisted you with your question.

vaibhavshinde
Kilo Expert

Write an OnLoad script on the Requested Item table:



function onLoad(){



try{


if(g_form.getValue('state') == '3' || g_form.getValue('state') == '4' || g_form.getValue('state') == '7')


{


//Get the 'Variables' section


var ve = $('variable_map').up('table');


//Disable all elements within with a class of 'cat_item_option'


ve.select('.cat_item_option', '.slushselectmtm', '.questionsetreference').each(function(elmt){


//if(elmt.value != '')


g_form.setDisabled('variables.'+ elmt.getAttribute('name'),true);


elmt.disabled = true;


});


//Remove any reference or calendar icons


ve.select('img[src*=reference_list.gifx]', 'img[src*=small_calendar.gifx]').each(function(img){


img.hide();


});


//Hide list collector icons


ve.select('img[src*=arrow]').each(function(img){


img.up('table').hide();


});


}


}


catch(e){}


}