Passing data to child table

Hello everyone,
I selected data by using frappe.db.sql() as a list and I want to pass it in to a child table in the interface.
How can I do?

You can use
cur_frm.fields_dict.suppliers.grid.grid_rows[0].doc.supplier = “_Test Supplier”;
as here erpnext/test_request_for_quotation_for_status.js at 092f6d37392fa72293ad72b6098781c3a72b801f · frappe/erpnext · GitHub