method : 1
---------------------------------------
var item = frappe.get_doc(cdt, cdn);
item.fied = "Value to be set"
method : 2
locals[cdt][cdn]['fied'] = "Value to be set"
Thanks for your help.
The first part was completed.
My second question was ,
“change the value in the parent form, when i change the value in the child form”
I actually want to do it when the form (modal) for the child form closes.(ie, when all fields in the child form has given values and new row is added to child table).
In the server side , i get the self.item (item - child table field name) as [] or [,].
You know why?
How can i get the value of item as a list or dict?
first tip: dont change the context of the thread!
second tip: if you have a long list of queries, enumerate it in a single thred with all points, or, start discussing on gitter chat gitter.im/frappe/erpnext
@ninjas005, these events are customizes with a fieldname, so the name of the doctype, passed first is the name of the doctype that contains the fieldname, in this case the parent.
Maybe you have a typo in the fieldname, of a unattented extra space