How to fetch the date inside the child table

hi all ,
how to fetch the date inside the child table from some selction in the parent doctype
i have field with name : current_semester in the child table
and
i have field with name : select _semester

i want to fetch the data that have same value of select_semester from the child table !

1 Like

On change of select semester write

select _semester:function(frm){
$.each(frm.doc.child_table_name function(idx, child_row){
if(frm.doc.select _semester == child_row.current_semester){
//you can access child table data with child_row object here
}
});
}

ok i can get the info based on selection , now how i change the value in that table based on selection
if i do set_value that effect will saved , and i dont need to save that data , i just want to view this data in the table based on selection !

i’m thinking about create another table and fetch this info on it !!
how can i fetch them record by record !

@Muad96 can you help me with that !!

If you have a child table where you will select the a DocType. Create a field within the same child table and use “Fetch From” - Fetching-data-from-a-document

1 Like

I have a field inside the child table , and i can fetch the data from the child table and i do print them out on console , but i need to just view that data in the child table based on selection from the parent doctype , i need just a view not edit