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

Finding a child record on a set's form

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

    Finding a child record on a set's form

    I don't know why I'm not seeing a way to do this. I have a form based on a set. On the form is a child browse, object name browse1. I want to put a button on the form that finds a record in browse1.

    I would like to do this with action scripting, if possible, but if not, what xbasic am I missing?

    Thanks if you can help.

    Jeff

    #2
    Re: Finding a child record on a set's form

    What sort of find do you want to do? Search for a value in a particular field? How would that value be specified?
    There can be only one.

    Comment


      #3
      Re: Finding a child record on a set's form

      Stan,

      The child table (browse1) is a product list for the company those products belong to. Fields on the product list include product number (prodno), product description (desc), etc. I would just like to set it up to find by product description. Since these product lists are usually very long I want to avoid the need for a user to click in the region, then page down until they find the description (the table is alphabetically by description).

      The button would simply bring up a find dialog, just like any find dialog when finding a record at the parent level. It would put the user into the region and go to the target record based on what they typed in. If it was auto-complete, that would be great but unnecessary.

      Jeff

      Comment


        #4
        Re: Finding a child record on a set's form

        Take a look at the functionality of the invoice items browse on the invoice form in AlphaSports. (table field rule lookup) Click in the deacription field and start typing.

        Perhaps you could adapt it to your situation.
        There can be only one.

        Comment


          #5
          Re: Finding a child record on a set's form

          I see what you mean. It's not quite what I'm after. It relies on having a field rule with a lookup table that I may not want to set up for other reasons. I'm really after an approach where you click a button at the top of the form and navigate to the right record on the browse.

          Jeff

          Comment


            #6
            Re: Finding a child record on a set's form

            Jeff, is the link field connecting the child and parent tables the same field you want to search by?

            Does the user get to pick which column to search on?

            Comment


              #7
              Re: Finding a child record on a set's form

              I'm not very knowledgeable about finding in browses of child tables. Is your set similar to the vendors set in AlphaSports with vendors as the parent and products as the child?

              If so you might consider having a button on the form which opened a filtered form of the products table. That form would have a browse of all the products for the vendor chosen on the calling form. Finding a product in that browse simply entails finding in the table, not a set. Should be straightforward.
              There can be only one.

              Comment


                #8
                Re: Finding a child record on a set's form

                No, the link is not a field that would be searched. And the search is almost always by product description, so this would be hard-wired, so to speak. They can always sort whatever column they want and browse (page or arrow down or up) alphabetically by brand, or product number, or margin, or whatever. But the specific need is just to click a button at the top of the form, be asked for the product description, and navigate directly to that point in the region.

                The situation is this. If they want to get to a product down in the lower half of the region, beyond view, they will click into the region and page down until they get to what they want. I had forgotten that this is how it was set up a long time ago. Today, when reviewing something else with them, I noticed that they had no direct navigation in the same way as I provide buttons for doing different finds at the parent level. I said I would set up a similar button to take them to an area of the region. Then when I went to figure it out, something I thought would be very straightforward, it wasn't as intuitive as I thought it would be.

                Jeff

                Comment


                  #9
                  Re: Finding a child record on a set's form

                  I like progressive lookups. Maybe this is what you might be able to use.

                  http://msgboard.alphasoftware.com/al...ht=progressive

                  or

                  http://msgboard.alphasoftware.com/al...ght=LV_example
                  Last edited by Mike Wilson; 07-27-2012, 12:49 PM.
                  Mike W
                  __________________________
                  "I rebel in at least small things to express to the world that I have not completely surrendered"

                  Comment


                    #10
                    Re: Finding a child record on a set's form

                    Originally posted by Stan Mathews View Post
                    I'm not very knowledgeable about finding in browses of child tables. Is your set similar to the vendors set in AlphaSports with vendors as the parent and products as the child?

                    If so you might consider having a button on the form which opened a filtered form of the products table. That form would have a browse of all the products for the vendor chosen on the calling form. Finding a product in that browse simply entails finding in the table, not a set. Should be straightforward.
                    "Finding in browses of child tables" is the key. I don't want to get into filters for this. I would just leave it the way it is rather than give the user a different experience from finding at the parent level. Anyhow, they would always want the full list in front of them. They just want to be located at the right place on the list.

                    Comment


                      #11
                      Re: Finding a child record on a set's form

                      This works on the AlphaSports vendors form when the products browse is visible.

                      Code:
                      rslt = ui_get_text("Find what?","Enter the description.","")
                      topparent:Object3:Description.activate()
                      topparent:object3.Fetch_First()
                      topparent:Object3.locate_next(rslt)
                      As with any text locate it will find "he" in "she" before it finds "the", alphabetically.
                      There can be only one.

                      Comment


                        #12
                        Re: Finding a child record on a set's form

                        Jeff,
                        You're looking for the functionality of recno_goto() and I don't believe that works for child tables, only parent tables.
                        Mike W
                        __________________________
                        "I rebel in at least small things to express to the world that I have not completely surrendered"

                        Comment


                          #13
                          Re: Finding a child record on a set's form

                          Jeff, doing a find by key in the linked child table is problematic. Because the form is set based, the records in the embedded browse are connected only to the current parent table record, so in a sense, they're prefiltered. Only children related to the parent are available. A find by key searches across the entire table, not just the records currently "available" to the parent. This is why there is no "easy" solution to your problem. Any search you attempt will have to include the current link field value as well as the description key.

                          Comment


                            #14
                            Re: Finding a child record on a set's form

                            Jeff, have a fiddle with this.
                            The set is Standard and Upsidedown. It's not perfect but might give you a lead.
                            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


                              #15
                              Re: Finding a child record on a set's form

                              Originally posted by Tom Cone Jr View Post
                              Jeff, doing a find by key in the linked child table is problematic. Because the form is set based, the records in the embedded browse are connected only to the current parent table record, so in a sense, they're prefiltered. Only children related to the parent are available. A find by key searches across the entire table, not just the records currently "available" to the parent. This is why there is no "easy" solution to your problem. Any search you attempt will have to include the current link field value as well as the description key.
                              Tom, I never realized this would be such a challenge. It would appear on the surface to be a few steps, including entry into the region, then giving the region focus for purposes of setting an index and doing a find. But opening "Another form or browse" is not answering the need to open "related child browse". It's not another form or browse, so it doesn't seem to fit with the tools available. If I come up with a solution, I'll be sure to share it.

                              Comment

                              Working...
                              X