onRecord event seems to be executed twice

I am trying to insert a log record into a table for every record that is retrieved in my grid.

I am creating and executing the insert statement in the OnRecord event.

I am getting two records for each record in the grid.

Seems like I should be getting one record…

Re: onRecord event seems to be executed twice

Not sure if this will help, but turn on your SQL debug code for the grid and see if you are getting extra sql statements.

Also try to echo the info to the screen in onRecord, see what is happening. (may have to turn off the sql debug, or the screen will get busy)

Regards,
Scott.

Re: onRecord event seems to be executed twice

I can see the statements getting executed twice, so I really think it’s a bug, but I’m trying to work around it by essentially adding code that will only execute my insert if it didn’t just execute it last.

Re: onRecord event seems to be executed twice

I’m trying to work around it by essentially adding code that will only execute my insert if it didn’t just execute it last.

Sexy!

Scott.

Re: onRecord event seems to be executed twice

I can reproduce this error.
In my case the onRecord event ist executed twice ONLY for the fir record in my grid.
My SC Version is 5.00.0010.
Please fix this bug.

Thank you
Arno

Re: onRecord event seems to be executed twice

Please report this to:

bugs@netmake.com.br
and
support@netmake.com

Regards,
Scott.