Announcement

Collapse
No announcement yet.

[SOLVED]Form (Multiple Record) Insert onAfterInsertAll Issue

Collapse
This topic is closed.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [SOLVED]Form (Multiple Record) Insert onAfterInsertAll Issue

    Hi,

    If you add sc_redir macro to onAfterInsertAll event of a multiple record form, it does not insert records to database. Form gives no error but redirects as expected.

    SC Version: 7.01.0012 (Professional Edition MySQL)
    Last edited by beykoz; 12-06-2013, 11:07 AM.
    Gökhan Sönmez

  • #2
    Works as defined ... Use sc_commit_trans() before sc_redir().
    Best regards: - Reinhard -

    I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

    Comment


    • #3
      [SOLVED] Form (Multiple Record) Insert onAfterInsertAll Issue

      Thank you!

      OBS. If your connection uses transaction control the use of this macro on the events onAfterInsert, onafterupdate, onAfterDelete, onBeforeInsert, onbeforeupdate or onBeforeDelete should come after the use of macro sc_commit_trans so this way it will save the form changes.
      Gökhan Sönmez

      Comment


      • #4
        Issue solved.

        Comment

        Working...
        X