Get data from a doctype to another child doctype

Hi
there are three doctypes
doctype ‘Item’
parent doctype ‘Product Repair’
child doctype for doctype ‘Product Repair’ is 'Product Repair Items ’

fields in child doctype 'Product Repair Items ’ is
item_replaced_if_any
item_code_replaced

fields in doctype ‘item’ is
item_code
item_name
item_group

Please help me in a client script for the following
fetch the value of item_name to item_replaced_if_any.
apply filter where item_group = Part
thanks and regards
hemanth

Hi @krishnanhemanth,

Please check the documentation of the Fetch value in a child table field from Master

Hi NCP
Thanks for that link
Iam not able to understand this one line
{“name”: d.batch_no}
could you please help
Thanks and Regrads
hemanth

{"name": d.batch_no} is the filter used to find the specific Batch record. It matches the Batch whose name is equal to the batch number entered in the Sales Invoice Item.

Hi NCP
have done numerous iterations on code
but all in vain