Hi Mates,
I’m trying route a new doctype [Import Permission Received Items] with route_options from a child-table raw with a field value of the child table [Import Permission Item] and name of parent doctype [Import permission] .
here i’m getting the value of parent doctype ie. [Import permission] with code frm.doc.name and also need to get the value of the item_name field from the child table but that’s failed.
Here is the code my trying…
frappe.route_options = {“permission_number”: frm.doc.name, “item_received”: Import Permission Item.item_name }
//button quantity Recieved
frappe.ui.form.on(“Import Permission Item”, “quantity_received”, function(frm) {
frappe.route_options = {“permission_number”: frm.doc.name, “item_received”: Import Permission Item.item_name }
frappe.set_route(“List”, “Import Permission Received Items”)
});
i would like to know the correct syntax/function to get the child table filed value here… Please …
Regards.