Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

OnAfterInsertEvent called when opening list page

$
0
0
I recently started experimenting with event subscriptions, and made a small function that will get add a record to a tabel whenever someone insert a record in the salesheader. When i wanted to try it out, i got errors stating that there had to be a transaction open when opening the sales order list ( Page 9305 ). After further debugging it turns out that the OnAfterInsertEvent gets fired for every record shown in the list !

I have been able to work around it by checking if the current transaction type is suitable for inserting, but i wonder if anyone else has a better solution.

Viewing all articles
Browse latest Browse all 10032

Trending Articles