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.
This control is located on the factbox, and linked to the OnAfterRecord of the factbox page, not the Customer Card, correct?
What is the source table of the factbox and its SubPageLink?
Thanks for your help again Alexander,
I ended up figuring it out... My OnAfterGetRecord was located inside the usercontrol braces (in the layout), I had to add another OnAfterGetRecord to the page itself, sop below the layout.
If I only have 1 in the page, the control does not seam to load when I click on the customer but then it does when I move to the next one.
I'm thinking it might be something to do with the ControlReady event which I'm not using at this time for this control.
It's working though.