Onload Clientscript

Manu143
Tera Contributor

Hi Community,

 

  How to write the onload client script  this should execute only for 'spares' view in alm_stockroom and alm_hardware table .In the onload, I have to check members part of sparing user. if yes , make all fields to read only else it should editable ?

 

 

Thanks,

Manu

5 REPLIES 5

Dhananjay Pawar
Kilo Sage

Hi,

Check attached screenshot for more information.

In client script uncheck the global check box then 'view' field will appear there you can mention the your view name.

In script you can check the user is part of group if yes then you can make the fields read only.

 

Thanks,

Dhananjay.

Hi Dhanajay,

  On which table should I apply this CS? 

Thanks,

Manu

I think you need to write CS on both the tables alm_stockroom and alm_hardware