Announcement

Collapse
No announcement yet.

Need form to go back to the newly created record entry after inserting new record.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need form to go back to the newly created record entry after inserting new record.

    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?

  • #2
    Look at navigation. Somewhere there's a checkbox not to create a new record after insert. That will solve your issue.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      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.

      Comment


      • #4
        If I try to force it using sc_apl_conf and sc_redir, I get really weird navigation behavior from it.
        Last edited by cnbrammer; 04-22-2016, 03:05 PM.

        Comment

        Working...
        X