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

Navigating in a Set v 10

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

    #16
    Re: Navigating in a Set v 10

    Jerry said:
    Thanks. I guess I should have mentioned that this problem occurs in the browse view, not the form view.
    Jerry, the behavior of the browse results from your set design. The column of Composers is misleading. There's really only one record in the primary table that contains "Rachmanioff" (sp?) You're trying to page down through the list as though there were 40 or 50 records all containing "Rachmaninoff". There aren't. What the column contains are virtual field values from each row's composite record.

    Your problem goes away if you use a different set. Make Songs primary. Link one to one to Musicmen. An example is attached. Check Toms_Browse and Toms_set.

    -- tom

    Comment


      #17
      Re: Navigating in a Set v 10

      Thanks Gentlemen - I have it now. And two good ideas.

      Jerry

      Comment


        #18
        Re: Navigating in a Set v 10

        While this may have nothing to do with your problem, change the linking field from numeric to character. Numeric fields should only be used for mathematical calculations. You can use numbers in a character field to link the tables. Try it and see if it helps.
        With all due respect - I totally disagree. Character fields are made for letters. LOL Also, if you happen to switch to sql in the future, you will be using numeric as linking fields. Back a few years ago, I had a mess because I used character linking fields. That was several versions ago, but it shut me down for a week trying to figure out why the numbers I had in the char fields messed up. Numeric ever since and never a problem.
        Dave Mason
        [email protected]
        Skype is dave.mason46

        Comment


          #19
          Re: Navigating in a Set v 10

          One final question - using Tom's solution, making Songs the parent database, how to I get the list of compositions in alpha order by composer? I have tried sorting the Songs database by Id+Composition and it works fine within that database , but when you add that database to the set, they no longer are. (the early part of the list is alphabetical - they were entered that way. But once beyond the initial collection, the ID number no longer puts composer records in alphabetical order).

          Jerry

          Comment


            #20
            Re: Navigating in a Set v 10

            Works as you want in the version I downloaded, but not the first time I opened the Form. That threw me a bit.
            I created different indices as a try out, rebuilt the existing indexes and tried again and it worked.
            Came out of Alpha - went back in and it was working fine.
            Attached Files
            See our Hybrid Option here;
            https://hybridapps.example-software.com/


            Apologies to anyone I haven't managed to upset yet.
            You are held in a queue and I will get to you soon.

            Comment


              #21
              Re: Navigating in a Set v 10

              One final question - using Tom's solution, making Songs the parent database, how to I get the list of compositions in alpha order by composer?
              Where do you need the list? There are different considerations depending upon whether you're talking about a form, a browse layout, or a report.

              -- tom

              ps. Usually best to ask different questions by starting a separate message thread. Makes searching much easier later on. This thread now contains at least 3 separate lines of discussion.

              pps. FYI, in Alpha Four each DBF file was called a database. That's not true in Alpha Five. They're called tables. Collections of tables (and sets) make up a database.

              Comment


                #22
                Re: Navigating in a Set v 10

                Sorry about the three topics. In this case, one thing led right into another and a new thread would mean explaining the whole damned thing over again.......

                No, this is the Browse layout, exactly as you set it up, Tom. But the compositions won't aphabetize....

                Jerry

                Comment


                  #23
                  Re: Navigating in a Set v 10

                  Jerry, because the browse is based on a set that uses two tables, linked one to one, you can easily sort the records on field values in either table.

                  Check this screencast:

                  http://screencast.com/t/gG50LUdqtE

                  Comment


                    #24
                    Re: Navigating in a Set v 10

                    Bravo and thanks for the tutorial, Tom. It works perfectly as you said. I guess I didn't think of that solution, perhaps because when I was working the set using the Musicmen table as the parent, it didn't work. I'd go in and specify how I wanted it sorted and then nothing would happen. When I'd go back to look at what I'd done, it was blank.......

                    At any rate, I do much appreciate your patience with an old man and thanks again

                    Jerry

                    Comment


                      #25
                      Re: Navigating in a Set v 10

                      Originally posted by DaveM View Post
                      With all due respect - I totally disagree. Character fields are made for letters.
                      Very True. However, when a number is used in a character field, Alpha reads it as a character. That's why there are functions to change the value to a numeric or date value. This has been a subject on several past versions and there are more who had problems by using a numeric field than those who used character fields. If there was a problem with a linking character field, it wasn't because numbers were used. I've been using Alpha since the early A4 days and have always used a character field with an 8 digit number as the linking field. Never, ever, did I have a problem with that.

                      Also, if you happen to switch to sql in the future, you will be using numeric as linking fields. Back a few years ago, I had a mess because I used character linking fields. That was several versions ago, but it shut me down for a week trying to figure out why the numbers I had in the char fields messed up. Numeric ever since and never a problem.
                      Alpha's definition of a character field is: The most common field type, Character allows any combination of alphanumeric characters. Maximum of 255 characters. I'm happy it works for you but I suspect your situation was due to another issue. I know there are others that use a numeric field as a linking field w/o problems but just as the 'Total' function will work on a form, I believe a numeric field is not meant to be used as a linking field. If one has a need to switch a database to sql, functions could be used to convert character to numeric.
                      Last edited by forskare; 08-24-2011, 11:34 PM. Reason: Update
                      TYVM :) kenn

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

                      Comment


                        #26
                        Re: Navigating in a Set v 10

                        Topic 1
                        I didn't see the problem described with Jerry's original database. As long as used with one to many design in mind. What's to be remembered is that;-
                        Doing manipulations of a child table of one to many - without being mindful of the over-riding control that the parent bears - could produce apparent anomalies.
                        The safest if you want to manipulate parent AND child independantly, is to work with a flat set construction (one to one) - or understand what the flattened view will look like - that gets back to the browse Jerry was using for one to many - the over-riding order/filter WILL be that of the parent. That is why Tom made that suggestion.
                        Topic 2
                        IMO using a numeric fields for linking is just plain silly. I dont program for SQL but I don't think it's logical.
                        Topic 3
                        Three excellent examples of progressive look-up dialogs from Mike and Tom for many to learn from (Mike actually provided two, take a look) and these kind of things are the gem of this board. Thanks.

                        Comment


                          #27
                          Re: Navigating in a Set v 10

                          Originally posted by Ray in Capetown View Post
                          Topic 2
                          IMO using a numeric fields for linking is just plain silly. I dont program for SQL but I don't think it's logical.
                          .
                          Actually it's quite logical to use numeric fields for linking. It's just easier in a dbf/Alpha system to keep the link fields as character - because they be treated as a character field in the linkage process.
                          Al Buchholz
                          Bookwood Systems, LTD
                          Weekly QReportBuilder Webinars Thursday 1 pm CST

                          Occam's Razor - KISS
                          Normalize till it hurts - De-normalize till it works.
                          Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
                          When we triage a problem it is much easier to read sample systems than to read a mind.
                          "Make it as simple as possible, but not simpler."
                          Albert Einstein

                          http://www.iadn.com/images/media/iadn_member.png

                          Comment


                            #28
                            Re: Navigating in a Set v 10

                            Maybe I'm off base here, but I use whatever is appropriate at the time as a linking field.
                            Example.
                            UK Social Security Numbers - AA NN NNNN C I'd treat as a Character field - well I have to.
                            Project Numbers - NN I'd treat as a Numeric.
                            Using the KISS principle, it might be that I have two or more links in different tables for display purposes using a Set. My version of Rationalisation I'm afraid.
                            See our Hybrid Option here;
                            https://hybridapps.example-software.com/


                            Apologies to anyone I haven't managed to upset yet.
                            You are held in a queue and I will get to you soon.

                            Comment


                              #29
                              Re: Navigating in a Set v 10

                              Originally posted by Ted Giles View Post
                              Project Numbers - NN I'd treat as a Numeric.
                              Why treat this as a numeric field? Just because they are all numbers? If that's your reasoning, it's not solid logic.
                              TYVM :) kenn

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

                              Comment


                                #30
                                Re: Navigating in a Set v 10

                                We all have our different ways of working Kenn.
                                What works for me I tend to stick with.
                                No reason not to use the numbers as characters, I agree, but it's my choice.
                                See our Hybrid Option here;
                                https://hybridapps.example-software.com/


                                Apologies to anyone I haven't managed to upset yet.
                                You are held in a queue and I will get to you soon.

                                Comment

                                Working...
                                X