Options

OnAfterInsertEvent called when opening list page

m_bergerm_berger Member Posts: 7
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.

Answers

Sign In or Register to comment.