Client Script on Change Function in Embedded list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2024 06:02 AM
Hello Community,
I have created a client script for the "Impact Category" table and a field named "<10 min." I want it to save directly without pressing the "SAVE" button when data is entered or updated in this field. This script works correctly in the main table but does not work in embedded lists. I would be very grateful if you could help me with this issue.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return; }
g_form.save();
I would be very grateful if you could help me with this issue.
Best Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2024 08:12 AM
Hi @beycos
You logic is missing in this.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2024 06:43 AM
Hello Atul,
Thank you for your response and the YouTube link you sent in your reply. I'm already subscribed to your YouTube channel, and it's very helpful to me. I always learn from this channel.
I have a screenshot of my table attached. Under the Impact category table, there are embedded tables for calculation and overall impact. The overall impact is automatically calculated when I enter a new value in the calculation, but every time I enter a value in the calculation, I need to save it in the main table. ( screenshot 2) However, I want to double-click on the value and save it directly, ( screenshot 3). I would appreciate any advice you can give me on this matter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2024 07:28 AM
Hi @beycos
Thanks for kind words. Oncell edit work in list view not on the screenshot your shared.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************