Update Factbox when changing record via Next or Previous Button

Hi,

I've created a JavaScript ControlAddin for my Customer Card Page which loads Customer Related data.

The Addin is subscribed to the OnAfterGetRecord which works great when you open the customer card.

Unfortunately, when I hit the NEXT - PREVIOUS button on the page, the data in the FactBox remains linked to the original customer.

If I close the page and open the next customer, the data loads properly. I've also tested in the Customer List page and when I change customer the data does not update there either.

If I debug my code, the OnAfterGetRecord fires the first time the addin is loaded but will not fire again when I click to view the next customer.

Any thoughts?

Thanks

Yann

Related
Recommended