How to fetch data from one child table to another child table using trigger from first child table

frappe.ui.form.on(“[TARGETDOCTYPE]”, {

“[TRIGGER]”: function(frm) {
frappe.model.with_doc(“[SOURCEDOCTYPE]”, frm.doc.[TRIGGER], function() {
var tabletransfer= frappe.model.get_doc(“[SOURCEDOCTYPE]”, frm.doc.[TRIGGER])
$.each(tabletransfer.[SOURCECHILDTABLE], function(index, row){
var d = frm.add_child(“[TARGETCHILDTABLE]”);

Code above is working as per logic, how to use trigger from child table.
i have two child tables in one doctype. (fg_items & rm_items) as and when the data in fg_items get filled, i want to fill raw materials required in rm_items table. Could anyone help me in this.

Is there any solution found on this? I have same use case like on focus of one child table row i have to enable other child table.