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

Forward and Back buttons (like IE)

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

    Forward and Back buttons (like IE)

    Has anyone ever created Forward and Back Buttons (like Internet Explorer uses) in an application?

    My client wants to eliminate going back to the main menu each time he wants to change screens in the app I created for him. So that if he opens the Quote form, then goes to the Order form, then goes to the Purchase order form, he wants to hit the "Back" button once to go back to the Order form, and hit the "Back" button again to go back to the Quote form, then hit the "Forward" button to get to the Order form.

    Any ideas how to set that up easily?

    Thanks in advance.

    Jay Talbott
    Jay Talbott
    Lexington, KY


    #2
    RE: Forward and Back buttons (like IE)

    Jay,

    This will be sort of like maintaining a series of undo levels.

    How many forms might be opened in succession before the user can go no further?

    Maybe you could use a global array of character type variables to keep a scrolling list of form names. The array would be updated each time a new form is opened. This would permit the user to 'back' up to the main menu through each form previously opened.

    The funcitonality of the 'next' button would depend on the context of the current form and would have to be programmed for each form, using a series of CASE statements tied to the current form name.

    Jay, I'm not crazy about the user's request unless you also furnish a quick way to get back to the main menu from anywhere in the application.

    -- tom

    Comment


      #3
      RE: Forward and Back buttons (like IE)

      Jay,

      I hesitated to answer this yesterday because, like Tom, I'm not crazy about this request as stated. I think it would be prone to far too many problems.

      Instead, I'd suggest this:

      First, closing a form will automatically take you back to the previous form unless the previous form was closed when the current form was opened. This is totally within the control of the programmer.

      Second, rather than having a "Forward" button, I'd suggest to the user that specific buttons could be put on each form that would take them to other appropriate / related forms.

      To see an example of this, go to my web page to view my Trak_It_SP Master_Order form. In the upper right quadrant you will see two buttons, "View Up List" and "View Client Details", that take you to another form. The "View Client Details" form is opened to the current client but can be navigated to other clients if desired. When "View Client Details" is closed, you are right back on the Master Order form in exactly the same state that you left it. The "View Up List" takes you to a list of current installations for that customer and, again, when the list is closed the user is right back where he started from.

      You will also find a "View Other Orders" button in the lower left. This was added so the user could leave one order in the middle of data entry and view another order. This was primarily because of phone calls - the users did not like having to quit in the middle of data entry to answer questions about another order then start the new record all over again. (That's what they were doing with their previous program.) To emplement this, I simply made a copy of the Master Order form, put a different colored background on it for identification purposes, and restricted a few of the actions on this 'view/edit only' form.

      I believe that a method such as this would be far less prone to problems than any attempt to track 'movement' so that a Forward button could be created. I've been doing this for over 10 years and have over a dozen regular customers and I would not even consider a 'Forward' button.

      Cal Locklin
      www.aimsdc.net

      Comment


        #4
        RE: Forward and Back buttons (like IE)

        Tom,

        I am not crazy about the request either. You know what they say, "The customer is not always right, but the customer is always the customer."

        Since the app only has about 7 forms, perhaps a small navigation area could be added to each form, that way the customer could get from any form directly to any other form, without having to remember where he was previously.

        Thanks for your reply. As always, I appreciate your thoughtful insight.

        Regards,
        Jay
        Jay Talbott
        Lexington, KY

        Comment


          #5
          RE: Forward and Back buttons (like IE)

          Cal,

          Thanks for your reply. I was composing my other comments while you wrote yours.

          I will look into your app later.

          I am going to try to dissuade the customer from this idea, and lean toward a more practical (and less costly) approach.

          Jay
          Jay Talbott
          Lexington, KY

          Comment


            #6
            RE: Forward and Back buttons (like IE)

            Hi all,

            I actually created a similar functionality but did not employ the browser-based forward-back metaphor and evaded its complexities and ambiguities.

            I have an application which opens to a main menu. There are five main data entry screens. Users make frequent switches between two of these screens.

            -Each of the two screens has a button allowing a quick jump to the other. (There's more; functionality to jump to a specific record in the other screen but that is outside the scope of this discussion. Think of it as a context sensitive zoom feature.)

            -On every form, the right-click menu of the form (not any field) duplicates the main menu so that any jump between forms can be made in a single operation without traversing the real main menu.

            I think this approach might addresse the substance of your user's request without getting mired in the literal terms in which it was expressed.

            Bill
            Bill Hanigsberg

            Comment


              #7
              RE: Forward and Back buttons (like IE)

              Jay,

              I also built such a function into one of my apps using Tom's approach. I later abandoned it because it didn't really help anything. In fact, the users wanted to jump directly to a form, not move back one by one. (My app only moved back, not forward).

              But if you must, here's what I did (this is from memory, so needs work)

              I decided to allow up to 20 forms deep, so in autoexec:
              Dim global vgReturn[20] as C
              vgReturn[1]=":MainMenu"

              Then in every form open statement:
              Dim i as N
              Dim frm as P
              frm=form.load("form_name")
              i=vgReturn.first_empty()
              vgReturn[i]=frm.name_get() ' in case there are two instances of the same form open

              Now comes the tricky part: In every form close statement:

              thisfrm=topparent.name_get()
              i=vgReturn.first_empty()
              for x=i-1 to 1 step -1 'look back through the list
              if vgReturn[i]=thisfrm
              goto GotIt
              end if
              next x
              frm=form.view('MainMenu") ' in case the previous was not found, have to go somewhere

              GotIt:
              if is_object(":"+vgReturn[x-1])
              frm=obj(":"+vgReturn[x-1])
              frm.restore()
              else
              frm=form.view(":"+vgReturn) 'in case the user closed it
              end if

              end

              In my app, I would then delete vgReturn[x], but if you want to move froward, you'll need to add more complexity.

              But my main point is, once the users got it, they actually didn't like it or use it.

              Good Luck
              Pat

              Pat Bremkamp
              MindKicks Consulting

              Comment


                #8
                RE: Forward and Back buttons (like IE)

                Hi Pat,

                "But my main point is, once the users got it, they actually didn't like it or use it."

                In one of my interface design books the author writes, "Always listen to your users but don't necessarily do what they say."

                Seems like that advice kind of fits your experience in this one.

                Bill
                Bill Hanigsberg

                Comment


                  #9
                  RE: Forward and Back buttons (like IE)

                  OK Guys,

                  This idea of mine will not go back an forward but.......

                  How about this dialog box? It is not quite finished but put it on a button in alphasports and see what you get. Maybe someone can just put in the last few lines to make it work completely.

                  DIM SHARED a_forms[100] as C
                  DIM SHARED varC_result as C

                  form_list = a5.form_Enum(2)
                  a_forms.initialize(form_list)
                  ok_button_label = "&OK"
                  cancel_button_label = "&Cancel"
                  varC_result = ui_dlg_box("Form Selector",
                  {frame=1,2:Select a Form}
                  {sp=.5}
                  {lf=1}
                  {region}
                  [.40,15form_list^#a_forms!select_form];
                  {endregion};
                  {region}
                  {lf}{justify=center}

                  {endregion};
                  %dlg%,
                  if a_dlg_button="select_form" then
                  a_dlg_button=""
                  end if
                  %code%)

                  Regards

                  Keith Hubert

                  Guild Member
                  London.
                  Regards
                  Keith Hubert
                  Alpha Guild Member
                  London.
                  KHDB Management Systems
                  Skype = keith.hubert


                  For your day-to-day Needs, you Need an Alpha Database!

                  Comment

                  Working...
                  X