Var item = locals[cdt][cdn];

Hello;

I need to know where the change happened in the child table (if at row # 1 or row # 2) and then I need to get the value of a field in the previous row, so how I can do this?

If I can access the field by item.child_fieldname so how I can access the value of the field in the previous row?

If the changed happened at row # 2 and I was able to get the metric value which is 17000, how I can access the metric field value of row # 1 which is 12000?

Regards
Bilal

you will get development related answers on discuss.frappe.io

1 Like