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

Visible browse records

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

    Visible browse records

    I have a number of embedded Browses in various forms. Most of them list in date order, with the oldest at the top, meaning I have to scroll down to the latest entries as they are not initially in view. I have tried reversing the list order via the 'Child Table Order' in the Set design,but this has a 'lumpy' result when you add new records. Meanwhile, a few of my embedded browses, which appear to be constructed in the same manner as the above, i.e. oldest records at the top, immediately show the latest records at the bottom of the list, with the new record option showing, and the old records not in view. My problem is, I cannot find out what I have done to make these browses display differently. I would be grateful for some advice.
    Many thanks
    Larry Gordon

    #2
    Re: Visible browse records

    Larry, could you post your database so we could have a look?

    Comment


      #3
      Re: Visible browse records

      Just a thought. Look at the form's properties -> filter/order tab.
      Ernie

      Comment


        #4
        Re: Visible browse records

        Thanks for the two rapid responses.

        Re posting my database here, I think that would be fairly difficult for me as it is so large - it has 4 separate menu screens and you would need a handbook just to get into it!

        Re the Form Properties Filter/Order tab, I hadn't looked there, but I can now confirm there are no filter or order statements there.

        I omitted to say in my original post that there are 6 different embedded browses spread over 4 tabs on the one form. This is compounding my confusion as to how they are operating differently. All I can think of is that when I created them, I might have used the genie to embed some of the browses (as per the set) when I first created the form, and have since added further embedded browses myself.

        Comment


          #5
          Re: Visible browse records

          I'm still quite new to A5 but I've found it tough to get browses sorted the way I want, using XBasic. What I've done recently is to put a button on a form and change it's properties to make it look invisible. Hiding it makes it unavailable. On the On Init event of the form I push this buttom which runs a sort query on the table the browse is based on. This seems to work... I wish I could find another way.

          Comment


            #6
            Re: Visible browse records

            Originally posted by Davidk View Post
            I'm still quite new to A5 but I've found it tough to get browses sorted the way I want, using XBasic. What I've done recently is to put a button on a form and change it's properties to make it look invisible. Hiding it makes it unavailable. On the On Init event of the form I push this buttom which runs a sort query on the table the browse is based on. This seems to work... I wish I could find another way.
            You can run the query directly from the OnInit. You don't need a hidden button.
            Peter
            AlphaBase Solutions, LLC

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


            Comment


              #7
              Re: Visible browse records

              I must be going about it the wrong way, Peter, 'cause I can't get it to work.

              The action I run from the button push, when viewed in Xbasic is...

              topparent.Run_Saved_Query("qrySortInventoryRecords")

              But it has no effect on the browse - the records are still unsorted. I tried refreshing the browse as well, but nothing. Do I need to do something else?
              Last edited by Davidk; 06-11-2009, 10:39 PM.

              Comment


                #8
                Re: Visible browse records

                David and Larry,
                The easiest way I can think of to start doing as you want is to use Action Script and create a custom query.....then even convert it to xbasic and further modify it if necessary.

                There are also many samples and scripts that have been posted here on the messageboard that should be useful.

                Or post a stripped down version of your database so that we can help directly with a specific solution.

                Ordering a browse was I believe the very first question I posed to this board and was my first baptism into xbasic as that was the solution I was given....have had no regrets on pursuing the xbasic route since either.

                The following was the answer to my question regarding sorting on various embedded browses on a tabbed form. This could very well be broken up into its components and used in various places. All depends upon what you want to do, how you want to do it, what your specific circumstances are, ..... There rarely is just ONE answer .

                Code:
                'OnTabChange  event
                
                
                sheet = topparent:TABBED1.tab_get()
                t=table.current()
                if sheet=1 then 
                    BROWSE1.QUICKSORTEXPLICIT("COMPANY")
                elseif sheet=2 then 
                    BROWSE2.QUICKSORTEXPLICIT("CITY")
                elseif sheet=3 then   
                    BROWSE4.QUICKSORTEXPLICIT("COUNTY")
                end if
                topparent.resynch()
                Mike
                __________________________________________
                It is only when we forget all our learning that we begin to know.
                It's not what you look at that matters, it's what you see.
                Henry David Thoreau
                __________________________________________



                Comment


                  #9
                  Re: Visible browse records

                  Hey Mike,

                  I had a look at the QuickSortExpicit orginally but it will only sort 1 column... and I need 4 columns sorted. I had origianlly created an Action to run the query off the button, but then veiwed the code for it and put this code into the OnInit event of the form, but it won't work. I've attached my database.

                  There are a couple of oddities about the database. It opens the main form - frmFitnessInventory - upon startup. There's a hotspot in the lower left corner of the form which displays the Control Panel - but the form is still open behind the control panel. Minimize the control panel to see the form open.

                  The button I used for a Push Event is behind the Number field of the Inventory Records... it reads 248 Inventory Records... so it's behind the 248. In design mode, you can click on this field and you'll find the button. I push this button in the OnInit event - but I commented out the code for now while I played with it.

                  Here's the weird thing (not so weird I guess). If I open the frmFitnessInventory form the main browse showing Location etc. is not sorted. Leave the form open and switch back to the Control Panel and run the form again. It's now sorted. I suppose because in the meantime the table get sorted.

                  Thanks for having a look.

                  Comment


                    #10
                    Re: Visible browse records

                    David,

                    A few issues I found. One was you were not closing the tables that are opened in the OnInit script. This was not the cause of this problem but can cause others. To prevent any timing issues I made the script into 2 functions....Query_Fitness() and OnInit_Fitness(). The main issue was the browse needed to have focus prior to running the query....you will see a topparent:browse2.activate() added to the function that has the query.



                    Mike
                    __________________________________________
                    It is only when we forget all our learning that we begin to know.
                    It's not what you look at that matters, it's what you see.
                    Henry David Thoreau
                    __________________________________________



                    Comment


                      #11
                      Re: Visible browse records

                      Very cool... thanks Mike. Got to remember to close my tables. Funny how it can be so automatic when coding (in Access) yet can't remember to do it in A5. Makes sense on the focus... thanks so much.

                      Comment

                      Working...
                      X