Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Wait.. msg while Saving

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

    Wait.. msg while Saving

    I just saw a video about linked Grids in which the linked grid will display a loading Message "on Top" of the grid.

    It would be great to have that same functionality when saving a record. Because now when the record takes more than a second to save the user thinks that the system didn't received the instruction to save the record and they just keep pressing the save button over and over or they even try to reload the page thinking the app is not responding.
    Cheers
    Mauricio


    #2
    Re: Wait.. msg while Saving

    i think this would be extremely useful.. records don't always save quickly and users are generally impatient. I've also had situations where duplicate records are entered multiple times from impatient people who click submit/save multiple times before the server has a chance to respond. very frustrating..

    Comment


      #3
      Re: Wait.. msg while Saving

      Only because I saw another video do I have any response to your question, and I would welcome anyone more seasoned at this to give additional info.

      I'm using detail views in most of what I'm soing--it would be slightly different using editable grids. What I've done is put a div in the freeform region under my detail views called 'msg'.

      Then, in the Grid Properties Javascript - System Events, I have the following code:

      AfterDetailViewCancelEdits:
      $('msg').innerHTML = 'Edits Undone.';
      setTimeout ( '$(\'msg\').innerHTML = \' \';', 2000 );

      AfterDetailViewSubmit:
      $('msg').innerHTML = '';

      CanDetailViewSubmit:
      $('msg').innerHTML = '<img src=\'CSS/A5System/Images/wait.gif\' /> Please Wait - Validating and Saving...';

      What I'd like to add/change is to have a modal window popup while saving so the save button can't be re-hit. That, or at least a disabled save button until the record is saved.

      Thanks in advance for more ideas on this...

      Comment


        #4
        Re: Wait.. msg while Saving

        It's easy to do .. here's one way of displaying a message ...

        This is from "What's new in V10 : Grid Component - 'How To' Topics,

        How to Put Up a Wait Dialog While The Grid is Performing an Ajax Callback

        If you Grid does a callback that takes some time (e.g. searching a large database), you might want to put up a custom 'working...' message.

        This example shows how you can do this for a search, but there are client side events that would enable you to put up custom messages for many different types of actions, including sorting, page navigation, saving data, etc.



        Put this in the canSearchSubmit event

        A5.msgBox.show('Searching...','<div style=\'padding: 20px;\'>Please wait while we search for the records.</div>','none',function() {});



        Put this in the afterSearchSubmit event


        A5.msgBox.hide();
        I'm sure it will become a grid checkbox property option at some point.
        Bob Moore


        Comment


          #5
          Re: Wait.. msg while Saving

          will this work in sql grids?
          Chad Brown

          Comment


            #6
            Re: Wait.. msg while Saving

            Sure
            Bob Moore


            Comment


              #7
              Re: Wait.. msg while Saving

              Great this has been a thorn in my side for a while. I will give it a go and let you know.

              Thanks Bob.
              Chad Brown

              Comment


                #8
                Re: Wait.. msg while Saving

                Put this in the canSearchSubmit event

                A5.msgBox.show('Searching...','<div style=\'padding: 20px;\'>Please wait while we search for the records.</div>','none',function() {});

                Put this in the afterSearchSubmit event
                A5.msgBox.hide();

                Ok Bob I gave it a try, am I wrong in assuming the events are CanSearch and AfterSearch or is this in java somewhere.
                also the first one in cansearch is saying missing parens.

                Hold up I think I have it now. It's Java I should have known by the ; at the end of the line.
                Last edited by chadbrown; 03-02-2010, 08:07 PM.
                Chad Brown

                Comment


                  #9
                  Re: Wait.. msg while Saving

                  Wicked tip works like a charm, I am storing that one away in the treasure chest.

                  This has always bugged me that while searches are going on users start clicking like crazy because they don't know if it the search was submitted!

                  Thanks Bob
                  Chad Brown

                  Comment


                    #10
                    Re: Wait.. msg while Saving

                    Remember, you can use the same technique for a number of JavaScript events like :

                    canRowSubmit / canGridSubmit | afterGridSubmit
                    canQBESearch | afterQBESearch
                    canSort | afterSort
                    etc.

                    If you look at my tutorial site, http://tutorials.micromediastudios.com ... I use these techniques to change an icon from green to red in the grid on the column sort and in the search button on a search sort. I've also got a DOJO example that shows a message fading in and out.

                    There are a lot of ways to provide this feedback to the user. Just use your imagination!
                    Bob Moore


                    Comment


                      #11
                      Re: Wait.. msg while Saving

                      Bob this maybe off topic but i have something that i would love to figure out in a tabbed ui.

                      As you open new tabs if the grid is dirty I would love to have the tab change color so that at a quick glance you would know which tabs you need to save or cancel changes.

                      Once that one is figured out i would like to create a button that would close all tabs that are not dirty.

                      Get this one and you are the champ.

                      Thanks
                      Chad Brown

                      Comment


                        #12
                        Re: Wait.. msg while Saving

                        I'm going to let Selwyn tackle that one!

                        A few quick thoughts though .. I think you could tell when a single grid is dirty but there may be multiple grids embedded within a tab or the tab may contain a page that contains multiple grids. I guess the best way to do this would be with an event listener at the parent level. It would take some work.

                        Sounds like a good idea.
                        Bob Moore


                        Comment


                          #13
                          Re: Wait.. msg while Saving

                          Figured that one isn't easy I have sent Selwyn a video on this already but didn't hear back from him but I hope it doesn't mean its a dead issue.

                          He may be ignoring me after the whole tabbed ui problems I had.

                          But he did fix them all.

                          I think it would be a great feature though.

                          Thanks again for the help.
                          Chad Brown

                          Comment


                            #14
                            Re: Wait.. msg while Saving

                            Originally posted by Bob Moore View Post
                            Remember, you can use the same technique for a number of JavaScript events like :

                            canRowSubmit / canGridSubmit | afterGridSubmit
                            canQBESearch | afterQBESearch
                            canSort | afterSort
                            etc.
                            Thanks for the reminder, I was just wondering about using this during a save! :)

                            Comment


                              #15
                              Re: Wait.. msg while Saving

                              Thanks You all, bob you are definetly the JavaScript m�ster of this comunity

                              BTW Java and JavaScript ar� diferent things. I used to think they were the same too
                              Cheers
                              Mauricio

                              Comment

                              Working...
                              X