redir after onafterinsert prevents insert

Hi,

I have an application where I have to do several things after insert: I need to add a record into another table and I have to redir to another update form. I have used several events for this but the main issue is that if I do not do a sc_redir things go well. But as soon as I have a sc_redir the programmed php in the event is done, but the update of the current table of the form application is not done.

Hello,

I have reported this issue to our bugs team for further testing.

regards,
Bernhard Bernsmann

Aducom,

      write this code: sc_commit_trans(); before the sc_redir command.

Makes sence, will try this. Thank you very much. Is this a work-around or the way it should work?

[QUOTE=paulomarcelo;12112]Aducom,

      write this code: sc_commit_trans(); before the sc_redir command.[/QUOTE]

i have a grid with a Button that opens a new form to input a new dataset. In this form i do the sc_redir to open another form after the input.

I placed the sc_commit_trans() and now it works fine.
BUT not in V7 only inV6, in V7 i come back to my grid, not to the 2nd form !!
Seems to me that this is a BUG !