I have table A, and inside that, I have a X field with type table which is connected to a child table.
how I can get field X from table A ?
how i can do this in my function ?
function fetch_step1(frm){
frm.doc.delivery_method
frm.doc.delivery_date
// get week day
let day = new Date(frm.doc.delivery_date);
frappe.call({
method:"frappe.client.get_value",
args:{
'doctype':'Def Delivery Method',
'filters':{'name': frm.doc.delivery_method},
'fieldname': ['time_schedules','cost']
},
callback: function(data){
}
})
}
frappe.ui.form.on('Order', {
delivery_method(frm) {
fetch_step1(frm)
},
delivery_date(frm){
fetch_step1(frm)
}
})
I get null for field time_shedules which have type table
Nobody?