Hi,
I have two custom entities in a model driven app, purchase orders and purchase order line items, they follow a similar patterns to quotes and quote line items relationship.
On the main purchase order form there is a subgrid in which the products for that PO that entered. What I want to happen is when a new item is added or removed from the subgrid (basically when it's refreshed) to calculate the total of the columns oms_totalexvat and oms_tax and set the fields in the po table oms_totaltax and oms_totallineitems.
If the subgrid had events handler this would be easier to achieve, but I'm struggling to know where to start with this.
It must be possible as order, quotes, invoices all do it, can anyone shed any light with this?