how to make all variables of all the cataolge item read only on SC tasks after the task gets closed

VIKAS MISHRA
Tera Contributor

I know that i can create one cataloge client script onload one on one catalogue item and make all the variables read only with the code  g_form.setVariablesReadOnly(true);.

But in my instanse there are 100 cataolge item and its not possible to create 100 on load client script for all.

please suggest how cani achive it with one way only 

3 REPLIES 3

Allen Andreas
Administrator
Administrator

Hi,

You wouldn't need to do this on 100 catalog items...you can create one client script on the sc_task table with checking the state value and if closed, set variables to read-only. This is if this is a platform wide requirement, otherwise, if it is per catalog item, then you'd want to use the catalog client script feature on each catalog item as needed.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

I have already tried this script but its not working at all

VIKASMISHRA_0-1676662187664.png

 

Hi @VIKAS MISHRA ,

There might be other client scripts which may be over riding this onload. Check them if there are present.

 

Please hit like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

Cheers,
Mohammed Basheer Ahmed.