Hey guys,
I know this must be self explanatory, but i am confused by this piece of code given in the wiki of wnframework.
wn.call({
method:"webnotes.client.get_value",
args: {
doctype:"Delivery Note Item",
filters: {
parent:"DN00038",
item_code:"Ser/003"
},
fieldname:["qty", "stock_uom"]
},
callback: function(r) {
console.log(r);
// set the returned value in a field
cur_frm.set_value(fieldname, r.message);
}
})
i want to get value of a field in item doc and want to set value to a field in batch doc. I feel this is the script i need to modify, But am confused with the args for the wn call method. Or just if anyone could explain the above code, i guess i will be able to make my case work.
Thanks a lot
Akarsh