Announcement

Collapse
No announcement yet.

Warn before switching records if fields have changed?

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

  • Warn before switching records if fields have changed?

    If a user makes a change to a record and then clicks the arrow to move on to the next record, the changes are not saved. If something has changed, I'd like to at least show a warning such as, "Are you sure that you want to leave without saving changes?"

    I found this old thread, but was hoping that there might be an easier solution since it was 4 years ago:
    http://www.scriptcase.net/forum/show...when-they-exit

    Thanks!!

  • #2
    Originally posted by TechGuy View Post
    If a user makes a change to a record and then clicks the arrow to move on to the next record, the changes are not saved. If something has changed, I'd like to at least show a warning such as, "Are you sure that you want to leave without saving changes?"

    I found this old thread, but was hoping that there might be an easier solution since it was 4 years ago:
    http://www.scriptcase.net/forum/show...when-they-exit

    Thanks!!
    What do the other programmers for this need ?
    As we know, users can easily forget to save data.

    I also try to find a way to do this ? There is nothing in the examples or help manual !

    Comment


    • #3
      Originally posted by mehmet.akturk View Post
      What do the other programmers for this need ?
      I do not think it necessary. That is what the user then make only once ... I would not waste time on that.
      Best regards: - Reinhard -

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

      Comment


      • #4
        Most of my users make the mistake more than once. And we keep getting new users to go through the learning process. And even if they only make it once, there is a significant amount of effort required by programming to clean up after their mess because product got shipped wrong, or too much, or databases need to be manually 'fixed'.

        Seriously, this would be a very excellent feature for scriptcase, since it is a rather complicated process to implement yourself, and would rely on understanding the code that they generate (which will eventually get broken during an upgrade).

        Comment


        • #5
          I'm rather shocked that there isn't already a solution for this...

          Comment


          • #6
            Agreed. This would make a great addition.

            Comment


            • #7
              Originally posted by TechGuy View Post
              I'm rather shocked that there isn't already a solution for this...
              Thinking it out a bit by ... The server does not know whether someone has changed a field, because that happens in the workplace and only when the update button is clicked can respond ...
              Best regards: - Reinhard -

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

              Comment


              • #8
                Reinhard,

                It would most likely involve Javascript code running in the browser to watch for fields that get changed. That would be a fairly efficient way to do it. SC currently will allow you to assign some Javascript to each field's 'onchange' event. But there is not a way to catch the navigate event to advance to the next record.

                You could involve the server. At some point, there is an event that causes the browser to display the next row. This may or may not involve a trip to the server to get the next row information, so it would be possible to send everything back to the server to be checked. but that would involve a lot of unnecessary traffic and delays.

                Comment


                • #9
                  Hello,

                  I have just sent your suggestion to our team.

                  regards,
                  Bernhard Bernsmann

                  Comment

                  Working...
                  X