Need onCell edit script to work on most of fields on List view on Risk table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 04:03 AM
Hello,
I have a requirement where many fields need Oncell edit functionality on story table List view, using script include and oncell edit client script. change on field should show pop up and remain old value
need help on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 04:53 AM
so basically you want to restrict list edit?
if yes then why not use list edit ACLs for those many fields
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 05:11 AM
Hi @Ankur Bawiskar ,
Yes to restrict list edit for most of the fields, i was asked to write script include and client script for this.
i am not sure how to declare in script include and call in Client script(OnCell edit).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 06:18 AM
best practice is to use list edit ACL. what you will be doing in script include and ajax?
are you validating something based on which you will revert to old value?
you can use GlideAjax in onCell edit client script
what's your challenge?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 06:22 AM
@Ankur Bawiskar ,
Yes validating, changed made will be revert to old value..
I am new at scripting, i do not know how to script GlideAjax in onCell edit client script..
would be helpful if you share code, or reference.