Accessing a particular child table via Script. Script Included

I want to change the first item’s quantity as shown in the table below (Qty):

can you please elaborate your query? from where is this item quantity value coming from that you want to set into the table??

also, you dont need to explicitly use for loop, just use “forEach” and set value to table using model set value, search the forum, there are lot of posts about manipulating data in the child table

Ah. I just wanted to set a value, any value. I’ve since found out how to do it (frappe.model.set_value). It was hard to find it through the documentation however.

Thanks for the foreach suggestion as well. Is there a way you’d recommend ingesting the material. Im still uncertain where to find more documentation on what frappe.model even does.