Refresh not working for child table

Hi All.

I’m not able to perform action on refreshing of child table items. I tried with below code:

frappe.ui.form.on(“Stock Entry”, “refresh”, function(frm) {
cur_frm.set_query(“expense_account”, “items”, function(frm, cdt, cdn) {
var d = locals[cdt][cdn];
console.log(“item_code------------”+d.item_code)
});
});

Any changes required?