How to add multiple fields to a LIST field and populate in Child table

AbdulAzeez
Mega Guru

Hello Everyone,

I have a requirement when ever i select any record in Parent list filed respective child list should fall in child list field.

I achieve this however adding more than one parent to Parent List field unable to populate old + new records, i can only view old records. Below is the the thread with which i achieve to populate from Parent and child records.

How to populate/display Child records with reference to Parent table

oharelharishkumar

Thanks in advance.

1 ACCEPTED SOLUTION

I'm not entirely clear on the latest issue.



You populated the child records from the parents listed. That sounds like it makes sense and is working as per your earlier requirement.



Correct me if I'm wrong on this part:


  1. You unlock the child record
  2. You remove some of the entries
  3. You lock the child record
  4. You unlock it again, and all original entries are there?

View solution in original post

9 REPLIES 9

I'm not entirely clear on the latest issue.



You populated the child records from the parents listed. That sounds like it makes sense and is working as per your earlier requirement.



Correct me if I'm wrong on this part:


  1. You unlock the child record
  2. You remove some of the entries
  3. You lock the child record
  4. You unlock it again, and all original entries are there?

Thats right.



I have un-locked the child field and removed few records and saved it. Then i want to see only selected records in the child field but when i reload form all entries are visible.


Ah, so it's after the save that it's happening. That indicates that the onChange client script is also running on form load and destroying your previously saved results. Sorry about that.



At the top of the client script, just after these lines:



if (newValue === '') {


      return;


  }



Add this to tell it "don't run on form load, only when the field is changed!"



if (isLoading)


      return;


Chuck,



Its working as required. Thank you so much..


You are very welcome. Thanks for using the community!