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

Linking field in a Set

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

    Linking field in a Set

    This is a dumb question, but I'm going to ask it anyway. I've been working with a5 for several months now, and haven't taken the time to figure out how to get a child record's linking field to automatically fill in from the parent when entering child records.
    Set is parent linked one-to-many to child. Using parent's auto-increment field as the linking field in the child. Have same name/size of this field in the child record. I've seen posts where alpha will automatically fill the child record field with the parent's record auto-incr. field. I've just been doing it manually, since I haven't figured out how to get alpha to do it automatically.
    Could someone tell me how this is done, if it can be done? Thanks.
    Ernie

    #2
    Re: Linking field in a Set

    If the data entry form is based on your set, then Alpha will autofill the link field value in each new child table record. If you enter new child table records using a form based only on that table, you must supply the link field value yourself. This sounds worse than it is. See the examples in the Code Archive forum on "passing values between forms" to get some ideas.

    Comment


      #3
      Re: Linking field in a Set

      Tom, his question is valid. I have a form built on a set, and trying to assign a field value from parent table to child table, doesn't work anymore. Used to before some new build patch I installed. I have reverted to build 3216, which is somewhat stable for imbedded browses, but doesn't correct this problem. New users don't know it used to work. I'm waithing patiently for this to be corrected.

      Comment


        #4
        Re: Linking field in a Set

        Originally posted by Wesolson View Post
        Tom, his question is valid. I have a form built on a set, and trying to assign a field value from parent table to child table, doesn't work anymore. Used to before some new build patch I installed. I have reverted to build 3216, which is somewhat stable for imbedded browses, but doesn't correct this problem. New users don't know it used to work. I'm waithing patiently for this to be corrected.
        Wesley

        What build are you using that the child table isn't getting the link value for? I just tried a couple of the latest releases with AlphaSports and added lineitems properly......

        Ernie

        Is the autoincrement field the only field in the set linkage?

        Can you post a (non)working example?
        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


          #5
          Re: Linking field in a Set

          Well, I quickly threw together a little 2 table app and set and it worked. But with this one and others I've tried, it doesn't. Hopefully you can see where I've gone wrong in my setups.
          Parent table: gpa
          Child table: gpa_details
          Linked by gpa_id
          Open gpa_form. Enterprise (from parent table) is basically the only field to fill in on the form part. Then enter values in the child browse and check to see if gpa_id gets filled in child table, gpa_details.
          Thanks.
          Ernie

          Comment


            #6
            Re: Linking field in a Set

            Originally posted by enstorms View Post
            Well, I quickly threw together a little 2 table app and set and it worked. But with this one and others I've tried, it doesn't. Hopefully you can see where I've gone wrong in my setups.
            Parent table: gpa
            Child table: gpa_details
            Linked by gpa_id
            Open gpa_form. Enterprise (from parent table) is basically the only field to fill in on the form part. Then enter values in the child browse and check to see if gpa_id gets filled in child table, gpa_details.
            Thanks.
            Ernie
            gpa->gpa_id is not defined in the field rules as an autoincrement field. I changed that and the gpa_details->gpa_id is filled in properly....
            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


              #7
              Re: Linking field in a Set

              For the benefit of other readers, in Ernie's example the link field defined in the parent table was being left blank, so there was no field value to be "auto-filled" when new linked child table records were entered in his set based form. Alpha Five was behaving consistently. The link field auto-filled in each new child table record was blank, just like their parents.

              Obviously, it's necessary to supply a link field value in each parent table record before one should expect Alpha to auto-fill that same value in new linked child table records.

              Comment


                #8
                Re: Linking field in a Set

                Well, that's obvious. I did set it to auto-increment. I have noticed on several occasions when making changes to the field rules, if I don't press the Save button and just exit out of field rules after making changes, it doesn't save it. If I'm not thinking about it, I won't catch it. I guarantee you, I set it to auto-increment, but guess it didn't get saved and I didn't catch it.
                I do understand the concept of having to have a value to pass before it gets passed. I was thinking maybe the parent record wasn't getting saved before the child record was added, but guess alpha takes care of that for you.
                Thanks for the help.
                Ernie

                Comment


                  #9
                  Re: Linking field in a Set

                  Ernie, I didn't mean to offend you. On my system here if I close the field rules dialog without having saved the rules I get a popup dialog asking me if I want to save them. I assumed you'd simply overlooked, or didn't appreciate the necessity for, supplying a field value to the link field in each parent record.

                  Comment


                    #10
                    Re: Linking field in a Set

                    Tom,
                    No offense taken. Don't know why sometimes it saves the field rules and sometimes it doesn't. Of course, since it doesn't always happen, can't bug it. Just have to remember to press the save button before exit. And yes, I also get the confirm message,,,,,,sometimes.
                    Ernie

                    Comment

                    Working...
                    X