Announcement

Collapse
No announcement yet.

[SOLVED]update button and sc_redir

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

  • [SOLVED]update button and sc_redir

    hi,

    if I add the function sc_redir at event onafterupdateall or onafterupdate
    the form application does not update anything field but just makes the redir

  • #2
    Re: UPDATE BUTTON AND SC_REDIR

    Not sure how you created your apps, but by putting the Sc_redir function in the event as mentioned, and it did redir than it is functioning as intended.

    That event is executed after update is perform. So if you form did not update, then somewhere else is having a problem.

    Comment


    • #3
      Re: UPDATE BUTTON AND SC_REDIR


      test and see.
      if I remove the redir the application work perfectly

      Comment


      • #4
        Re: UPDATE BUTTON AND SC_REDIR

        Hello,

        I have reported this issue to our bugs team for further testing. What kind of form are you working with? Is this a editable grid form?

        regards,
        Bernhard Bernsmann

        Comment


        • #5
          Re: UPDATE BUTTON AND SC_REDIR

          no is a sigle record form

          Comment


          • #6
            Re: UPDATE BUTTON AND SC_REDIR

            is on every form type. is a big big problem!!!

            Comment


            • #7
              Re: UPDATE BUTTON AND SC_REDIR

              Hi,
              I ran into the same bug and I needed an immediate solution.
              Here is the workaround I use till it's fixed.

              I perform a simple sc_lookup() on the primary key of the record I just updated. If it's OK, redirect to the grid.

              Hope this helps.

              jsb

              Comment


              • #8
                Hello,

                This problem still persists?
                Best Regards,
                John L. Santos

                Bug Tracker Team
                NetMake - IT Solutions

                Comment


                • #9
                  Yes the problem still persist

                  Comment


                  • #10
                    Yes, I have the same problem.
                    Using Ubuntu Linux 13.04 and SC Professional MySQL 7.1.last
                    We need: good and complete documentation written in proper English

                    Comment


                    • #11
                      Here's a workaround:
                      It depends on your situation, but fire a sc_commit_trans() should do it.
                      I think what's happening is because of the redirect it doesn't reach the actual commit
                      and therefor the transaction never gets completed.

                      jsb

                      Comment


                      • #12
                        Works!
                        Thank you jsb!
                        Using Ubuntu Linux 13.04 and SC Professional MySQL 7.1.last
                        We need: good and complete documentation written in proper English

                        Comment


                        • #13
                          This is not a bug and it's been discussed in this forum several times. You need to use the commit if you want to do a sc_redir.

                          from the documentation (the helpfile)

                          If the user, in any of these events, use an application redirectioning (macro "sc_redir") must before the redirect, use this macro to guarantee the transactions previously effected.
                          Albert Drent
                          aducom software netherlands
                          scriptcase partner, reseller, support and (turn-key) development
                          www.scriptcase.eu / www.scriptcase.nl

                          Comment


                          • #14
                            100% true. Mea culpa.
                            Using Ubuntu Linux 13.04 and SC Professional MySQL 7.1.last
                            We need: good and complete documentation written in proper English

                            Comment

                            Working...
                            X