- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2017 10:42 AM
making the field read only based on catalog task state
Solved! Go to Solution.
- Labels:
-
Best Practices
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2017 12:19 PM
You can write a client script on Task table onChange on field name State.
var catalogitem = g_form.getValue('u_item');
if(catalogitem=='Your catalog Item')
if(newValue==closedvalue && catalogitem=='Your Catalog Item')
{
g_form.seReadOnly('variables.Yourvariablename',true);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2017 11:41 AM
you want to hide or make it read only?
above you have mentioned you want to make read only?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2017 11:43 AM
Sorry read only

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2017 11:45 AM
see if you don't have any condition like you have mentioned above. so you can simply create catalog ui policy to make your variable read only and don't forget to mark check on task level and ritm level check box.
if you have some condition then please explain what are that?
Thanks,
Harshvardhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2017 11:49 AM
The condition is ,when ever catalog state is closed complete ,i need to make few variables read only in RITM and catalog task

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2017 12:06 PM
when the task close then ritm state also get changed so simply write client script on sc_req_itm to when ever state get change then your variable should also get read only.
try with above script that i have mentioned.