How to make catalog variable editable on RITM.?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2022 02:29 AM
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.
Any help is appreciated!
Regards,
Rafmine

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2022 05:47 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2022 01:41 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2022 02:12 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2022 05:07 AM
Hello,
You can achieve this by using UI Policy.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2022 05:27 AM
Hi TejasviR,
it should be editable to only one particular assignment group. I'm looking for script.
thanks in advance.
Regards,
Rafmine.