How to read the data from child to parent doctype?

ill create a field named cheche, ill try to read the data inside the table? how to solve this?

thanks!

Hi @Denmark_Del_Puso! What is your trigger in showing the data into the field? Since I can see here that you are getting from a child table so I doubt you want to show all values in the field in all rows at once.

Hi @Denmark_Del_Puso you can try:

frappe.ui.form.on("Child Table Name", "your_receipt_document_field", function(frm, cdt, cdn){
var d = locals[cdt][cdn];
cur_frm.set_value("cheche", d.your_receipt_document_field);
});

hey @johnskywalker ill try your code but it doesnt work.

Hi @Denmark_Del_Puso kindly share your code here

@johnskywalker

hi @Denmark_Del_Puso it seems that you have the wrong parameters.