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

Browse Record View

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

    Browse Record View

    This has been discussed before, but I'm not sure that it has been resolved. I want to view a browse so that the last "group" of records displays - instead of the first "group" of records, as is usually the case. In other words, just like Quicken, which shows the last set of transactions and the last row displayed is the empty "new record" row. It is possible to query a limited set of records (not desired) or it is possible to fetch_last and fetch_previous a bunch of iterations to get the browse view "started" as described above. But, when you enter a new record, the "new" row jumps to the top of the browse. Is it possible to do the above or am I wasting my time?
    Peter
    Peter
    AlphaBase Solutions, LLC

    [email protected]
    https://www.alphabasesolutions.com



    #2
    RE: Browse Record View

    Peter,
    I have several cases where I want to view the last records entered in reverse order. When I built the set, I checked the inverse order checkbox. Would this work for you?

    Comment


      #3
      RE: Browse Record View

      Michael Humby posted a solution to browse the last dozen records in a child browse, in the code archive. Is this what you want?
      There can be only one.

      Comment


        #4
        RE: Browse Record View

        Ohlen,
        Unfortunately that won't do in this case. I too have sets w. reverse order childs.
        Peter
        Peter
        AlphaBase Solutions, LLC

        [email protected]
        https://www.alphabasesolutions.com


        Comment


          #5
          RE: Browse Record View

          Stan,
          Like I said, that script will display the last bunch of records, but, when you enter a new child, the browse jumps the new record to the top of the browse (which is what I don't want).
          Peter
          Peter
          AlphaBase Solutions, LLC

          [email protected]
          https://www.alphabasesolutions.com


          Comment


            #6
            RE: Browse Record View

            "when you enter a new child, the browse jumps the new record to the top of the browse (which is what I don't want)" and "I too have sets w. reverse order childs. "

            Isn't this the problem? When you get to the point where you want the records to display in "forward" order of children, your order is set to "reverse order".
            There can be only one.

            Comment


              #7
              RE: Browse Record View

              Peter,

              You said, "But, when you enter a new record, the "new" row jumps to the top of the browse."

              Isn't that what is supposed to happen since the last recorded entered is part of the last "group" of records?

              What do you mean by the "last group of records"? We're confused, or at least I am.

              kenn
              TYVM :) kenn

              Knowing what you can achieve will not become reality until you imagine and explore.

              Comment


                #8
                RE: Browse Record View

                >>What do you mean by the "last group of records"?
                Peter
                AlphaBase Solutions, LLC

                [email protected]
                https://www.alphabasesolutions.com


                Comment


                  #9
                  RE: Browse Record View

                  Perhaps I misspoke. Forget about sets. A plain single table has the same problem. See my response to Ken Nordin below.
                  Peter
                  AlphaBase Solutions, LLC

                  [email protected]
                  https://www.alphabasesolutions.com


                  Comment


                    #10
                    RE: Browse Record View

                    Peter,

                    It seems to me that the most likely cause of what you're seeing is the sort order in the browse itself.

                    If the new record is added to the browse at a time when the browse is sorted in a specific order, Alpha Five will reposition all the others to accommodate it. Depending on the sort order of the displayed browse this could cause the new record to wind up at the top instead of the bottom.

                    I suggest you compare the behavior of the browse object, using a form based on a single table, when the sort order is based on record numbers, and when it's based on a key field in your table. Position the records in the table, and add a new record.

                    -- tom

                    Comment


                      #11
                      RE: Browse Record View

                      I agree with Tom. If you use the "Invoice" form in the Invoice.adb,
                      and add a new item to the bottom of the browse for an invoice,
                      it stays at the bottom and does not reposition itself.

                      Comment


                        #12
                        RE: Browse Record View

                        Tom & Peter,
                        I think I'm being misunderstood. I just tried using the browse and the sample invoice.adb browse and the same condition exists. When I say the new record jumps to the top, try this:

                        Open the sample invoice.adb.
                        "Exit" the adb so the controlpanel shows.
                        From the tables/sets tab open the invoice_items default browse. You see the "first group" of records in the browse (based upon whatever index it happens to be set to).
                        Now click on the toolbar "new record".
                        Instantly, the records all scroll to the top. Now you see the last record only at the very top row. The next row is the "new record" you are now entering.

                        Do you see what I mean.

                        I am not referring to any particular index order problem. Record order exhibits this same default behavior.

                        If you happen to own Quicken, check out how it works: Whenever you enter a new transaction in their browse, the new record always stays at the bottom of the browse so that you always see all the preceeding records above (limited only by the size of the browse window). I hope I am making this clear.

                        Peter
                        Peter
                        AlphaBase Solutions, LLC

                        [email protected]
                        https://www.alphabasesolutions.com


                        Comment


                          #13
                          RE: Browse Record View

                          Peter, I think what you're seeing has been programmed into the 'New Record' tool.
                          If you put your cursor in the browse, and move to the last row you can begin entering the new record without seeing the browse move...

                          If the functionality of the 'New Record' tool is bothering you stop using it. Why not build your own by dropping a button on the form?

                          In other words, the problem you are concerned with is probably not caused by entering a new record in the browse object. It's caused by the way the 'New Record' tool works.

                          -- tom

                          Comment


                            #14
                            RE: Browse Record View

                            Tom,
                            I probably am guilty of "raising waves where there is no wind". i.e. I was wondering if there was an easy way around the default behavior. Obviously not. I can try coding it, but its gonna be ugly.
                            Peter
                            Peter
                            AlphaBase Solutions, LLC

                            [email protected]
                            https://www.alphabasesolutions.com


                            Comment


                              #15
                              RE: Browse Record View

                              OK, Michael Humby's script in the Code Archive section ("Focus on last 12 child records") works well when put in the CanRowChange event of the browse. I also set it to a logical variable, so that you can scroll the browse when you want. Thank you all for your input (and esp. thanks Michael Humby).

                              Peter
                              Peter
                              AlphaBase Solutions, LLC

                              [email protected]
                              https://www.alphabasesolutions.com


                              Comment

                              Working...
                              X