how to refresh a embeded list

alvatindra
Giga Contributor

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.

20 REPLIES 20

I have another query related to embedded list,



Can I write the script in System Definition->Relationships using refine Query(current,parent) function to control the set of records of embedded list on the xyz table form?



I need to show specific records of embedded list based on xyz table records.


Hi Tindra,



The answer is yes. As an example, I have taken the defined relationship "Incidents by same caller", usually set up as a related list and made it an embedded list on the incident form.



find_real_file.png



Reference: http://wiki.servicenow.com/index.php?title=Creating_Defined_Related_Lists


Hi Chuck,



I have same requirement. can you please guide me? i have written my script and i don't know why it is not working?


i have a form there i have added an embedded list . now based on form value, it should show the record in embedded list.


in relationship ,how my script will populate the value in embedded list.


lot's of confusion i have on embedded list.



Please suggest ctomasi



Thanks,


Harshvardhan


Think of an embedded list much like a related list. You are creating related records to the current record the list appears on. The only difference is that with a regular related list you need to first create the parent record before you get the related list with which to put child records.



With an embedded list, it's more like fields on a the same form. You are still creating related records, but they are queued up and not saved until the form itself is saved. If you enter a new form with an embedded list and enter a bunch of values in the form and embedded list, nothing is saved until you submit the form.



I hope that helps tell the difference.


Agreed


if i want to populate some value based on the form field. what would be the best approach.


after business rule or before business rule , if you have any other suggestion please let me know.



by the way i had tried with after as well as before business rule but both are not working.


how "System Definition->Relationships" will help to populate the value in embedded list?



Thanks,


Harshvardhan