Onload Clientscript
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2024 11:33 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2024 11:46 PM - edited 03-26-2024 11:48 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 01:33 AM
Hi Dhanajay,
On which table should I apply this CS?
Thanks,
Manu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 01:35 AM
I think you need to write CS on both the tables alm_stockroom and alm_hardware
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 01:26 AM