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


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 = {
frappe.set_route(“Form”, “Allotment”, “New Allotment”);
}, __(“Make Allotment”));

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