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

Creating child records

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

  • MoGrace
    replied
    Re: Creating child records

    It seems like searching for desktop posts these days is always going to find old threads. So bumping an old one is not always a bad idea.

    Leave a comment:


  • Stan Mathews
    replied
    Re: Creating child records

    You guys realize this is a ten year old thread?

    Leave a comment:


  • DaveM
    replied
    Re: Creating child records

    Bill, I tend to do it one of 3 ways. If using tabs or- one can just drag fields from child to parent and use. I prefer to create a form within the set, but on the child table and then place the form in the parent form including possibly an imbedded browse. Other is to create same but call it from main form, usually over the main form usually with a button push.

    Leave a comment:


  • madtowng
    replied
    Re: Creating child records

    This sounds a lot like something I have working.
    We have a customer that has many customers, and needs a place to store product.
    This customer provides us an ASN, that includes their customer's ID, an item number or numbers, quantity, and a skid id.
    We then save that information, along with a binbay id (where we actually put the skid).

    Some of my terminology might be slightly different, but am I on the right track ?

    Leave a comment:


  • Bill@TrackerSystems.com
    replied
    Re: Creating child records

    Go for it. I'd Appreciate any suggestions.

    Bill Belanger

    Leave a comment:


  • MoGrace
    replied
    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.

    Leave a comment:


  • Bill@TrackerSystems.com
    replied
    Re: Creating child records

    Yup, that worked. Thanks for the help guys.

    Bill Belanger

    Leave a comment:


  • Bill@TrackerSystems.com
    replied
    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

    Leave a comment:


  • Tom Cone Jr
    replied
    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

    Leave a comment:


  • Bill@TrackerSystems.com
    replied
    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

    Leave a comment:


  • Tom Cone Jr
    replied
    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.

    Leave a comment:


  • Tom Cone Jr
    replied
    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.

    Leave a comment:


  • MoGrace
    replied
    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.

    Leave a comment:


  • Keith Hubert
    replied
    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.

    Leave a comment:


  • Bill@TrackerSystems.com
    replied
    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

    Leave a comment:

Working...
X