Announcement

Collapse
No announcement yet.

redir after onafterinsert prevents insert

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

  • 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.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

  • #2
    Hello,

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

    regards,
    Bernhard Bernsmann

    Comment


    • #3
      Aducom,

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

      Comment


      • #4
        Makes sence, will try this. Thank you very much. Is this a work-around or the way it should work?
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment


        • #5
          Originally posted by paulomarcelo View Post
          Aducom,

          write this code: sc_commit_trans(); before the sc_redir command.
          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 !

          Comment

          Working...
          X