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

Set children records will not display correctly

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

    Set children records will not display correctly

    I have created a form to display a parent record child records from three different tables, but only the first child record displays correctly. Any ideas of why the other two child tables won’t display?

    I have defined a set with one parent table and three children tables: Person and Address, Telephone, and eAddress, respectively.

    A one to many relationship is defined between the parent and each child.

    Each of my child tables has a logical field “Default_indicator”, and one record in each child table has the indicator set to True. The Child tables in the set all are filtered for Default_indicator = True.

    When I create a A5V9 default form with embedded browses, all records are correctly displayed as shown below. Note that while multiple records for each child table exist for the parent, only one record, flagged as default, is displayed. So far, so good.

    When I create a custom form and display these same fields as type-in fields, I get the unexpected results below.

    The parent record and the default child address record is displayed, but the default child telephone and default child eAddress records are not displayed.

    Note that the cursor is on the field for telephone type above. Even when this field gets the focus, the desired record is not displayed.

    Now, I type in just one letter in that field, and surprise, surprise, both the telephone type and telephone number are displayed, as shown in the third screen print.

    I typed in “a” in the telephone type, and both Office and the phone number were displayed. When I placed the cursor on the eAddress type field, the Email was displayed. When I placed the curson on the Eaddress field the [email protected] address was displayed.

    Anyone have any ideas of why all three children records won't display at the same time?

    Thanks,
    Bob McGaffic
    Pittsburgh

    #2
    Re: Set children records will not display correctly

    Bob, it might be possible to offer some suggestions with a copy of the app to explore. It's rare to see a type in field for field in a record from one-to-many linked child table. Your form is based on the set, and the field objects are automatically bound to the underlying tables. Without a browse object you won't be able to see and /or edit the child table records. Your form design swims against the Alpha Five current. If it's essential and you wish to spend the time overcoming the flow consider a form based on a dummy table populated with layout variables that you populate via xbasic. i.e. a form that's not bound to the underlying tables.

    Comment


      #3
      Re: Set children records will not display correctly

      I have something similar going on. I imported a large SQL database. After spending days creating and editing sets, and failing to have child data show up as it should, I decided last night to test the same relationships in Access. Boom. Perfect on the first try, data showing up exactly as it should. Way frustrating.

      And there's no way I'll be able to share the app. It's confidential client data.
      Jerry Hatchett

      CERTIFIED COMPUTER EXAMINER
      LICENSED PRIVATE INVESTIGATOR


      Digital Forensics & E-Discovery

      Red Forensic
      Houston, TX

      Comment


        #4
        Re: Set children records will not display correctly

        Jerry, you probably know this but for the benefit of others who may find this thread later on let me mention that it's not necessary to post real data. In fact, it's often ill advised. What is necessary at times is to post a working copy of the database with dummy data.

        -- tom

        Comment


          #5
          Re: Set children records will not display correctly

          Thanks, Tom. On this one, however, I'd have to get client permission to even share the structure of the database. Tis the world I work in. Lots of NDAs and such.
          Jerry Hatchett

          CERTIFIED COMPUTER EXAMINER
          LICENSED PRIVATE INVESTIGATOR


          Digital Forensics & E-Discovery

          Red Forensic
          Houston, TX

          Comment


            #6
            Re: Set children records will not display correctly

            Jerry and Tom,

            I did this years ago in Microsoft Access, and it was trivial.

            My problem is that my example works for one child record, but not the other two, and the settings for all tables are modeled the same. So the issue is not whether you can display a set's single child record in A5V9 -- you can, and I successfully did it with Address. It's just why can't I repeat this result with other child records for Telephone and E Address.

            Why is this important? I have attached two examples from SAP to show what I am trying to emulate. Screen 1 shows a field to enter a phone number; note the yellow arrow icon for additional records which is equivalent to ... in my Alpha form.

            The second screen shows that mutliple phone numbers are available, that the displayed one has the default radio button for field St (Status) checked. I plan to open a similar embedded browse form when the user clicks on my ... icon on my Alpha form.

            SAP (sap.com) is the world's largest provider of Enterprise Resource Planning software (Oracle is 2nd place). Among others, CRM vendor Centerbase (centerbase.com) also takes this approach, which conserves screen real estate.

            Actually my problem originally was using a combo box instead of a type in field for both telephone type and E Address type, and could not get the data to display correctly.

            So I simplified my example, dropped the combo boxes and tried just a type-in fields, and found that A5V9 still won't display these records. Only if I attempt to type an entry in the fields are the "hidden" values suddenly displayed.

            Why does the child record display work for the Address, but not Telephone or E Address?

            I will try to post a cleaned up database, zipped, and would be greatful if either of you could take a quick look at it. I can't see that I'm doing anything wrong.

            Bob McGaffic
            Pittsburgh
            Last edited by rmcgaffic; 07-07-2008, 05:21 PM.

            Comment


              #7
              Re: Set children records will not display correctly

              Bob, I created my own example, and found the same behavior you describe. I note that pressing F5 to refresh the display will also cause the field values from the 2nd and 3rd linked child table to appear. I've submitted a bug report. -- tom

              Comment


                #8
                Re: Set children records will not display correctly

                Bob,

                I have had the same behaviour as you describe and doing pretty much the same thing. ie displaying one primary or prefered record out of many

                If you place an embeded browse on you form then the type in fields will behave. It must be that without the embeded browse the child records in the one to many relationship aren't being populated into the form properly.

                Anyway I solved this by changing the links to one to one. Alpha treats a one to one link as almost being the same record.
                Tim Kiebert
                Eagle Creek Citrus
                A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.

                Comment


                  #9
                  Re: Set children records will not display correctly

                  Robert, I hope someone else can help, but I'm stuck with the same issue here.
                  Jerry Hatchett

                  CERTIFIED COMPUTER EXAMINER
                  LICENSED PRIVATE INVESTIGATOR


                  Digital Forensics & E-Discovery

                  Red Forensic
                  Houston, TX

                  Comment


                    #10
                    Re: Set children records will not display correctly

                    In each of the fields based on the child table, in the OnArrive event put:
                    topparent.resynch()

                    More economically and if you follow a rigid tab pattern, put the above script in the first field only.

                    Comment


                      #11
                      Re: Set children records will not display correctly

                      A much better (much more economic) script:
                      In the OnArrive Event of ALL child fields put:

                      Code:
                      if this.value=""
                      topparent.resynch()
                      end if
                      Last edited by G Gabriel; 07-07-2008, 10:32 PM.

                      Comment


                        #12
                        Re: Set children records will not display correctly

                        G, this will only cure the ill if F5 causes the child records to display, correct? If they're not displaying at all, even with refreshes, it won't help, right?

                        Thx...

                        Chop/Jerry
                        Jerry Hatchett

                        CERTIFIED COMPUTER EXAMINER
                        LICENSED PRIVATE INVESTIGATOR


                        Digital Forensics & E-Discovery

                        Red Forensic
                        Houston, TX

                        Comment


                          #13
                          Re: Set children records will not display correctly

                          I don't use any F's I am a mouse-person. Let me see what happens with F5.

                          Later:
                          Tested it, works with F5 too.

                          Jerry:
                          I have a feeling I am not understanding your question..
                          Without the script, the values did not display no matter what. With the script, they display fine.
                          I haven't really thought about whether F5 triggers any events, as I said, I never use any Function keys. Maybe they do, I will look into it. I would think they would trigger the same events as the mouse.
                          Last edited by G Gabriel; 07-07-2008, 10:37 PM.

                          Comment


                            #14
                            Re: Set children records will not display correctly

                            Interestingly... Clicking through records... if the 1st child record does not contain any data, then the 2nd child record does display. And, as you continue clicking through records, when the 1st child record does have data again, then the 2nd child record does not display.

                            I don't think it should be like this.

                            David

                            Comment


                              #15
                              Re: Set children records will not display correctly

                              I apparently misunderstood, G. There was a discussion saying that using F5 to refresh the view sometimes caused the child records to show up. That is not the case here. They never show up. I'll give the script a whirl and see what happens, since I'd really prefer to work in A5 instead of Access.

                              As a workaround and built the relationships, ran a query to pull the needed data, exported the results, and pulled them into A5 as a single table. This approach will work for my immediate needs but as soon as I deliver these results I expect the client to decide that more fields of data are needed, etc., so I need to eliminate this cumbersome route.

                              Thx again...
                              Jerry Hatchett

                              CERTIFIED COMPUTER EXAMINER
                              LICENSED PRIVATE INVESTIGATOR


                              Digital Forensics & E-Discovery

                              Red Forensic
                              Houston, TX

                              Comment

                              Working...
                              X