how to refresh a embeded list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2016 05:01 AM
I need to refresh the embeded list( of table pq) which is kept on other table(xyz) form. I am inserting values of xyz into the pq table with mapping fields through script.
The values are inserting into the table pq but its not showing in the embeded list on time. When I am reloading the page ,the values are shown in the embeded list.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2016 05:03 AM
Hi Tindra,
The idea of embedded lists is that they are part of the form. You need to submit a form to save new entries in the list. Similarly, you need to refresh the form to see new values in the list (just as though they are form fields.) They are not dynamically refreshed nor is there a refresh button on them.
Embedded Lists - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2016 05:11 AM
Hi Chuck Tomasi,
So there is no option or an alternate to refresh the embeded list?
Can I get the marked records from the embeded list through script as shown below?
I need to delete the selected records when I click on Remove button( Need to be created from the ui macro)
Thank You,
Tindra

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2016 05:15 AM
Hi Tindra,
The way embedded lists are designed to work is that you 'mark' a record for deletion (putting a line through it as a visual indicator) and when you update the form via save/update/submit, it them commits those changes along with any other fields you may have modified. This gives you a chance to back out. There are no immediate changes made until you save.
If you want different behavior, you can always consider changing the embedded list to a related list, but that still does not give you immediate "one click" delete access. You need to check the records to delete, then use the list menu at the bottom.
I hope this helps you understand how embedded lists work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2016 05:21 AM
Thank you!!