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

Find Record main record from the child table is not working for me

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

    #16
    Re: Find Record main record from the child table is not working for me

    Put a memo field in the parent table where each of the kids name are listed.

    Then the query only has to look at the parent table.

    vFindCHild $ KidsList
    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


      #17
      Re: Find Record main record from the child table is not working for me

      Thanks Ted
      Hope your wife is OK. Wish you well.

      Al I like that Idea.
      I had applied that Idea before, but because I set to fill the field in the parent table from the kids school at dataentry, it did it, but create other problems as it took the last one only.
      That Idea will solve the problem. Just one small detail, How do I populate that field "KidsList"?
      A lookup in the parents table,will only fill the last entry and the same will be with posting in the field rules of the kids school.
      can you help wit a more detail suggestion?

      Comment


        #18
        Re: Find Record main record from the child table is not working for me

        There are a couple of options...

        The easiest is to update the parent record using an update operation that reads all of the child records (probably using external record get...)

        Or better is a field rule for onsave of the child record using custom code that reads the parent field, checks if the kid is there, adds the kid's name if it's not there..

        Of course Jr, II, III, IV issues arise.... but they would be there any way...
        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


          #19
          Re: Find Record main record from the child table is not working for me

          Thanks for the direction.
          Ok, I think I did follow your suggestions.

          It is working, I think.

          Here is the attached new version. There are notes in the MainMenu.

          Also i would like to improve the way you fill the query fields.
          Right nowyou have to enter the text. see jpg attached.

          Is there a way to add a combo list or choice list to the fields of a query?
          Attached Files

          Comment


            #20
            Re: Find Record main record from the child table is not working for me

            Originally posted by MikeData View Post
            Is there a way to add a combo list or choice list to the fields of a query?
            Good job on the operation code...

            I'd use an xdialog to control the input for the query.

            Also, I'd use a | or ^ as the delimiter for the words of the kid's city for multiple word cities - North London|New York
            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


              #21
              Re: Find Record main record from the child table is not working for me

              This is driving me nuts.
              I can get it part way there by using a Browse based on the Set. Then it all goes pear shaped when there are multiple records.
              Is this a known problem where the Cross Level Query doesn't work? Edit. It does work, but it doesn't do what you might think it does. It returns all records at the child level related to the Parent. So in this case Mike, all Kids records with a Parent ID of 1 will be returned irrespective of the SchoolCity.
              I am sure that I have used it successfully in the past.
              My last effort was to query at the table level, copy the queried records, and join the tables. Effectively a flat file again.

              Another Edit.
              Just looked at your V3 Mike. A flat file will most certainly work.
              The next issue you have is changes of hair colour and dual residencies. (_|_)!
              Last edited by Ted Giles; 02-25-2012, 12:05 PM.
              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


                #22
                Re: Find Record main record from the child table is not working for me

                I blieve this sample have done it. Lots work around, but it works.
                Yes, searching in the child table, does not work. I tried in v10 and either.

                The button with the dialog give the option to create better input fields. I even use one by caling the table, kind of fancy.
                Using the separator | by itsef, somehow gave me problem, So I did " | " as separator and is working.
                I had to readjust the globals in the process, as I did not see a way to trim them at selection. They were coming with spaces.

                Attached is the latest version3

                Comment


                  #23
                  Re: Find Record main record from the child table is not working for me

                  great job

                  thanks for sharing...
                  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


                    #24
                    Re: Find Record main record from the child table is not working for me

                    Thanks to you and Ted. You guys gets the credit.

                    Comment


                      #25
                      Re: Find Record main record from the child table is not working for me

                      Have a look at the attached Mike.
                      There is a Tree and a Go to Parent button in "Suggestion_01"
                      The Tree shows Location, Hair, Schools and then Parent. The Parent can then be used to go to that particular record.
                      The Tree works, but the initialisation of the variable isn't working properly and I can't easily figure out why. (Al/Mike?)
                      However.
                      Open the Suggestion_01 form, run the Tree selection, close and reopen the form and the variable will be set and working.
                      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


                        #26
                        Re: Find Record main record from the child table is not working for me

                        Yes, I am going senile.
                        See V6 which works as expected and properly.
                        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


                          #27
                          Re: Find Record main record from the child table is not working for me

                          Originally posted by Ted Giles View Post
                          Yes, I am going senile.
                          See V6 which works as expected and properly.
                          where is the script that is called in the oninit of Suggestion_01?

                          script_play_local("DimvThis")
                          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: Find Record main record from the child table is not working for me

                            Killed it.
                            V6 handles it.
                            Dynamic Tree initialises variable on first run.
                            I'd forgotten that - my Muppetry!
                            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: Find Record main record from the child table is not working for me

                              That is great, but how to make it look like with button 3.
                              See attached your version updated and a bit polished.

                              As it is the way in button 3. Seems to work the way customer expect it.

                              The customer want a dialog with a few question and then show the form with those records matching. In the case of this customer, there will be 30 or 40 records returned every day, 4 or 5 times in a day.

                              I was hoping your way, will be faster and as clear as the one I show in button3, as when I apply the code/technique in button3 in a DB of 250,000 rec. is very slow.
                              The main table of the set which has more than 100,000 recoords plus 14 indexes listed.
                              So when I finish selecting records, before the form opens, I see in the lower/status bar a counting of % about 13 to 15 times. This takes about 15 to 20 seconds and every time I move to another record is almost the same, another 10 to 15 sec showing the % count.

                              Is this a normal behavior for a query?
                              Last edited by MikeData; 02-26-2012, 02:44 PM.

                              Comment


                                #30
                                Re: Find Record main record from the child table is not working for me

                                Gonna be tomorrow Mike. It's late and dinner is nearly ready.
                                Might get time a bit later.
                                The time issue is most likely the Index processing.
                                Try creating an index of Location/hair colour/.
                                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