Announcement

Collapse
No announcement yet.

Form application does not write data in database when event is used

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

  • Form application does not write data in database when event is used

    Hello,
    i am not sure if this is a bug or if have not understood right.
    ok so i have made a form application and it works right. but after client has entered it's data i want to open it
    another application. so in the onAfterInsert Event this:

    sc_redir('other_formapp');

    and after it inserted i hit the insert button it also redirect me to a new application as i want it to. but if i check in the database the data is missing. i am using SC 8.00.0013 and the the thing why i believe it is a bug is. because this project was original iniciated in version 7. and i have in the same project in an "old" application same sc_redir makro used and it works. it doesn't make other sense to me.

  • #2
    This is not a bug. Your application is generated within a transaction and you break the commit when you do a sc_redir. So before calling sc_redir you need to perform a call to sc_committrans(). See SC macro's.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment

    Working...
    X