How to get an specific document field with type table

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 ?

@Masoud_Hosseini doc.table1[i].table2

@bahaou

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)
	}
})

image

I get null for field time_shedules which have type table

Nobody?