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

Creating child records

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

  • Creating child records

    Can someone steer me to an explanation of how to create child records? I can't seem to find it anywhere. Do I do a post operation or an action script on saving a form that will create a new record in the child table, then populate the fields? I just want to be sure there's isn't a 1 step simple operation to do that I don't see.

    Thanks
    Bill Belanger

  • #2
    Re: Creating child records

    Hi Bill,

    Have looked at AlphaSports?

    What do you mean how do you create child records?

    I think you seem to be asking the question as to how the data gets into a child table, or have I got that wrong?
    Regards
    Keith Hubert
    Alpha Guild Member
    London.
    KHDB Management Systems
    Skype = keith.hubert


    For your day-to-day Needs, you Need an Alpha Database!

    Comment


    • #3
      Re: Creating child records

      Thanks Keith. Yes, I'm asking how to get data into child records. And yes, I've looked at Alphasports. Where are child records created?

      It seems when I created a set it used to allow me to create child records. It's been years since I've used Alpha. Is it explained anywhere in the help files? I can't seem to find anything in a search of the forum either. That's why I figured it must be easy and I'm just missing it.

      Bill Belanger

      Comment


      • #4
        Re: Creating child records

        Hi Bill,

        Child records are created in the child table.

        First question, how have you created the link of child to parent. Are both fields the same? ie Type and length.

        Would you like to zip up what you have done and let us know what you want to happen.

        Alpha is like riding a bike, you just need to get back on and peddle.
        Regards
        Keith Hubert
        Alpha Guild Member
        London.
        KHDB Management Systems
        Skype = keith.hubert


        For your day-to-day Needs, you Need an Alpha Database!

        Comment


        • #5
          Re: Creating child records

          Bill, you can create records in a table using scripts, or from the keyboard. It's not clear what you're talking about. Why not tell us what's going on and what you want alpha five to do? Describe the context in which you want to enter the new records. Tell us how you want it to work.

          Comment


          • #6
            Re: Creating child records

            Thanks Tom. I see that in Alpha Sports there are two tables, invoices and invoice items. I want to do the same thing. I would like to create an invoice and show the line items in a browse below. I could probably have the browse display records filtered on the invoice number. But I also want to "post" new records to an inventory table. It looks like to me that I need to first create a new record, then populate the fields in that record with a script, probably an event on saving the parent record. I just wanted to be sure I had the right idea and that there wasn't a step that would copy the entire record to a new table.

            Bill Belanger

            Comment


            • #7
              Re: Creating child records

              Hi Bill,

              When you mention the Inventory table, is that so you can subtract and add values to product quantities in hand?

              If that is the case look at the field rules of the child table in Alphasports.

              We would like to help but please give us more to work with.
              Regards
              Keith Hubert
              Alpha Guild Member
              London.
              KHDB Management Systems
              Skype = keith.hubert


              For your day-to-day Needs, you Need an Alpha Database!

              Comment


              • #8
                Re: Creating child records

                Originally posted by Bill@TrackerSystems.com View Post
                Thanks Tom. I see that in Alpha Sports there are two tables, invoices and invoice items. I want to do the same thing. I would like to create an invoice and show the line items in a browse below. I could probably have the browse display records filtered on the invoice number. But I also want to "post" new records to an inventory table. It looks like to me that I need to first create a new record, then populate the fields in that record with a script, probably an event on saving the parent record. I just wanted to be sure I had the right idea and that there wasn't a step that would copy the entire record to a new table.

                Bill Belanger
                Hi Bill,
                It almost sounds as though you are wanting to create matching transactions for your inventory table that will reflect the line items you are shipping in the invoice. When you say "new records" then you are talking about an append operation not a post (whether operation or field rule). If the records already exist in the inventory table and you merely want to update the quantities on hand as Keith said, then you want to post to those matching records which could be done in a field rule set in your invoice line items table.

                We need more info! My inventory is done with matching transactions created for each shipment, because I have to split the total amount shipped into percentages for the different inventory items used to get my quantities.
                Robin

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

                Comment


                • #9
                  Re: Creating child records

                  I want to do the same thing. I would like to create an invoice and show the line items in a browse below. I could probably have the browse display records filtered on the invoice number.
                  This much is dead easy. Create a set. Invoice headers as primary and line items linked one to many as child. Base form on the set. Put fields from the primary table on form. Use embedded browse to display child table records. Surely you remember this, right? Am I missing the point of your post?

                  Perhaps the tutorial in the help file on "using tables in a set" will bring back some memories.
                  Last edited by Tom Cone Jr; 05-17-2008, 04:56 PM.

                  Comment


                  • #10
                    Re: Creating child records

                    Bill said:
                    But I also want to "post" new records to an inventory table. It looks like to me that I need to first create a new record, then populate the fields in that record with a script, probably an event on saving the parent record. I just wanted to be sure I had the right idea and that there wasn't a step that would copy the entire record to a new table.
                    This makes no sense to me, sorry. In the invoice the quantity ordered is usually a field in the line items table, not the invoice table. That's true in AlphaSports which you say you want to mimic. I'm baffled why new records in the inventory table would be needed?

                    Are you simply trying to adjust the quantity on hand ? If so you need to CHANGE a record in the inventory table, not ENTER a record, right? If you want to adjust the quantity on hand in the inventory table consider using a post FIELD RULE defined in the invoice_items table that subtracts the quantity ordered from the quantity in inventory? More details are needed if these ideas don't get you going.

                    Comment


                    • #11
                      Re: Creating child records

                      Thanks guys. Unfortunately "inventory" in this situation is not like a merchant who catalogs items for sale. This is a freezer plant. Customers send pallets or totes (huge tubs of veggies) of product to them to keep them frozen until needed for shipment to other customers. They could be totes of blueberries, pallets of frozen french fries, who knows. These products go into inventory, and then they're gone. The product is date coded, they may be McDonalds french fries but with the date code, they are a unique product. They will never be inventoried again. I don't need a bunch of empty records in an inventory table.

                      This is what I'd started in Filemaker (about 1/3rd done) before changing my mind and re-starting it in Alpha, just to give you an idea of what I'm doing.

                      http://64.223.230.119/fmi/iwp/cgi?-db=acp&-loadframes

                      login as admin, no password.
                      Look at Incoming

                      Attached is where I am in Alpha.

                      Bill Belanger

                      Comment


                      • #12
                        Re: Creating child records

                        Bill, I'll be glad to take another look once I have a clue what you need. In meantime I'll sign off hoping that someone more intuitive than me can figure out what you're asking about. -- tom

                        Comment


                        • #13
                          Re: Creating child records

                          I was asking how to create new records in a child table when I add a record in the parent table. Posting only modifies a field in a matching record. A copy records operation would be nice, but it wants to create a new table. I think append unique records might work using a unique transaction code for every new parent record.

                          Thanks
                          Bill Belanger

                          Comment


                          • #14
                            Re: Creating child records

                            Yup, that worked. Thanks for the help guys.

                            Bill Belanger

                            Comment


                            • #15
                              Re: Creating child records

                              Originally posted by Bill@TrackerSystems.com View Post
                              Yup, that worked. Thanks for the help guys.

                              Bill Belanger
                              Glad you got going in the right direction. Your model seems to be one of "warehousing" which would be more descriptive than "inventory". Are you going to leave this link open? - I'd like to look at it some more.
                              Robin

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

                              Comment

                              Working...
                              X