I am trying to set values to a child table but it is not working. Here’s my code
var d = res.message
d.forEach( function(row,v) {
frappe.model.set_value(row.doctype, row.name , "category", d[v]['category'])
frappe.model.set_value(row.doctype, row.name , "name2", d[v]['name2'])
frappe.model.set_value(row.doctype, row.name , "min", d[v]['min'])
frappe.model.set_value(row.doctype, row.name , "max", d[v]['max'])
})
cur_frm.refresh_fields();
}
Although the loop is working correctly but value is not getting pushed to rows.