how to make all the variables read only on SC tasks after the task gets closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2023 10:29 AM
On the task form i can see all the variables are still editable after the task gets closed, how to i make them not ready only and i want this for any kind of SC_task raised in any cataloge item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2023 10:39 AM
You can write a Catalog Client Script (type : onLoad), in script check if task state is closed complete, if yes, then use g_form.setReadOnly("var_name", true);
Also make the client script to execute on catalog task using, checkbox (applies on Catalog task) on client script form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2023 11:05 AM
How can i do it for all the catalogue at a same time, becuase if i got to catalogue client script for one item and check the check box applies on catalogue task it works for that item only.
But i need to perform it for all the items
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2023 11:13 AM
Check below article, this might be helpful:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2023 11:19 AM
@VIKAS MISHRA you can try like this
function onLoad() {
if(g_form.getValue('state')==3)
{
g_form.setVariablesReadOnly(true);
}
}
Bharath Chintala