I noticed that the code in F151 onaftergetrecord runs more than once. That is strange because it is only 1 customer which is retrived as a record. I saw that because i added some other calculations which should only run once. Then I checked some other forms f.i. customer card. This piece of code in the onaftergetrecord runs about 5 times. Why is that, where is that coming from?
Reinoud
0
Comments
On the other hand you can use a variable to make sure your code runs only once (if you are asking about that ).
Pargesoft
Anyway it remains strange to me that this runs twice. (Did you check the customer card and this trigger? I did not change anything just looked at the times that it passes the header, it realy is 5 times)
Customer Card's UpdateOnActivate property value is Yes. So triggers like OnFindRecord, OnAfterGetRecord, OnAfterGetCurrRecord runs twice. But it only runs twice in the Cronus database.
Pargesoft