How to get child table values in frappe.route_options along with Parent table values

Hi,

In sales order , I have a button for creating Allotment which is a custom doctype. Using frappe.set_route I am able to get parent table values but not sure how to get child table values along with it. Kindly help, thanks!

frappe.ui.form.on(“Sales Order”, “refresh”, function(frm) {
frm.add_custom_button(__(“Make Allotment”), function() {
frappe.route_options = {
“customer”:cur_frm.doc.customer,
“sales_order”:cur_frm.doc.name,
“delivery_date”:cur_frm.doc.delivery_date,
“set_warehouse”:cur_frm.doc.set_warehouse
};
frappe.set_route(“Form”, “Allotment”, “New Allotment”);
}, __(“Make Allotment”));
});

Hi Go to below link. Hope this will help you.