I need to make my form, where after inserting a record, it goes back to the newly created record for further modification. I have tried adding: $NewOrderID = mysql_insert_id(); sc_redir(“B1-OrderForm”,id_order = $NewOrderID); to the OnAfterInsert event, but it made no difference. How do I go about doing this?
Look at navigation. Somewhere there’s a checkbox not to create a new record after insert. That will solve your issue.
It is set, and it does go back to edit mode, but doesn’t go to the newly created record. Instead, it goes back to the record I was on before I clicked the Add New button.
If I try to force it using sc_apl_conf and sc_redir, I get really weird navigation behavior from it.