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

a form based on a set with both one-to-may and one-to-one children

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

    a form based on a set with both one-to-may and one-to-one children

    Hi all,

    My very 1st post, so pardon me if I don't have the vernacular (I'm an old FoxPro programmer. You say 'browse', I say 'grid').

    I have a set with children that are both one-to-many and one-to-one.

    When I build a form with this set, it doesn't work. Depedning on whether the 1st child is a one-to-one or a one-to-many it doesn't work in different ways.

    Before I start fiddling around some more, I just want to be sure that ...
    1) it's ok to have a set with a combination of one-to-one and one-to-many;
    2) the default form is works ok on such a set.

    The set has 5 one-to-many children and 2 one-to-one children. So I just want to be sure I haven't hit some sort of limit of complexity. Or, as is more likely, I'm making some rookie mistake.

    #2
    Re: a form based on a set with both one-to-may and one-to-one children

    Hi, Richard, and welcome to the message board.

    All data entry in Alpha Five occurs at the table level, not the set level. Set based forms can be a bit confusing at times because Alpha will commit records to disk when focus shifts from fields in one table to fields in another. This happens automatically. This can be hard to detect if your form scatters fields from several tables across the display. Difficulties can occur if data entry is "begun" in a child before the parent is committed to disk, too. See if thinking in terms of data entry through individual tables may explain what you are seeing.

    What type of problems are you seeing?

    I recommend an article at www.learn alpha.com called "Simplify your Applications for better performance" if memory serves. I have learned to use much simpler data entry forms, avoiding the complexities of the set structure you describe.

    Comment


      #3
      Re: a form based on a set with both one-to-may and one-to-one children

      Hi Tom,

      I'm trying to make one large display form; no data entry. It seems that if I have nothing but one-to-many children and build a custom form by just dumping everything on the form, it works fine. But if I add a one-to-one child (essentially a lookup), then the data displays, but, I can't navigate off the first record using the next, last buttons in the toolbar.

      I haven't yet got a search form; I'm still playing around.

      I'm using MS SQL.

      Comment


        #4
        Re: a form based on a set with both one-to-may and one-to-one children

        Maybe consider making the "lookup table" the primary table with the other two as child tables then you should be able to navigate up and down the lookup table.
        Bob
        Bob Whitaker

        Comment


          #5
          Re: a form based on a set with both one-to-may and one-to-one children

          Using MS SQL? in a set composed of active link tables? My experience (and my comments in this thread) assumed you were using native Alpha Five tables.

          The navigation buttons on the form's toolbar are bound to the primary table in the set supporting your form. So, Bob's idea should give you the navigation you want.

          Comment


            #6
            Re: a form based on a set with both one-to-may and one-to-one children

            This is what I figure is happening.
            A one-to-many join is a left join; but a one-to-one is just a join. So if any of my parent records did not have match in my two one-to-one joins, they didn't show up.
            And that looked to me like the navigation was wonky; also because my this was my first form and it was pretty ugly.
            I changed the one-to-ones to one-to-many and now it works fine.
            I was under the impression that if I had a one-to-many, then the data had to show up in a browse. But I can add a text control (type-in field) and bind it to the column in the child cursor.

            Thanks for the assistance and getting me to look at the problem in a different way. I'll be back.

            Comment


              #7
              Re: a form based on a set with both one-to-may and one-to-one children

              Hi Richard,

              Please clarify, what do you mean by "It doesn't work"? You say you only want to use the form to view all the data in all the tables connected to the set. The fields in the tables which are joined 1:1, will display in the parent table part of the Drop down Display Field List. Those fields will not display separately as do the fields which are linked 1:M. Try creating a form based on a set and select the Default Form. You will see how the form is constructed. Sometimes I do this when creating a new form and then moce the fields from the Tabbed object to the form itself. Hope this helps. If this is not what you are after, I apologize for not understanding.
              TYVM :) kenn

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

              Comment


                #8
                Re: a form based on a set with both one-to-may and one-to-one children

                Ken,

                You do realize you're answering a six month old post?
                There can be only one.

                Comment


                  #9
                  Re: a form based on a set with both one-to-may and one-to-one children

                  LOL What a hoot. No, I did not. I did a search for an issue I had and it was one of the result? I never paid attention to the date. Time for bed, it's been a long day. As a matter of fact, many long days. Maybe like he said, he'll be back as he didn't say if he figured it out. Hmmm. Maybe no egg on my face after all.
                  TYVM :) kenn

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

                  Comment


                    #10
                    Re: a form based on a set with both one-to-may and one-to-one children

                    And then sometimes you just want to chat a bit after a whole day in here searching 5 year old threads...especially when the desktop threads are so infrequent.
                    Robin

                    Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                    Comment

                    Working...
                    X