How to make catalog variable editable on RITM.?

Community Alums
Not applicable

Hi Community,

There are three catalog task which gets created one by one, like when first task is closed second task will get created and when second task is closed third task will get created. The requirement is for first task on RITM, catalog variables one variable should be read/write/editable only.

find_real_file.png

 

Any help is appreciated!

 

Regards,

Rafmine

 

 

14 REPLIES 14

Create a Catalog UI policy, that runs on Catalog tasks.

Then click that it should run a script, and in the scripting section, write something like this

if (g_form.getValue('assignment_group') == 'sys_id_of_specific_group_here')
{
	g_form.setReadOnly('variable_name', true);
	g_form.setReadOnly('variable2', true);
}

 

Example below.

find_real_file.png

find_real_file.png

Community Alums
Not applicable

Hi OlaN,

unfortunately, the thrid task assignment group is same as first, I want to make only variables editable only on first task, can you provide me the step to achieve this.

Thanks in advance.

Regards,

Rafmine.

I'm sorry, but my proposed solution only works if you have something that separates the different tasks.

A workaround would be to have another (hidden) variable, that is set to false when first task is created, and when that task is completed, it sets the variable to true, and have the UI policy set the other variables to readonly on condition that the variable is true.

TejasviR
Tera Contributor

Hello,

You can achieve this by using UI Policy.

Community Alums
Not applicable

Hi TejasviR,

 

it should be editable to only one particular assignment group. I'm looking for script.

thanks in advance.

Regards,

Rafmine.