Jed69 Posted December 31, 2007 Posted December 31, 2007 Sorry this is probably a really stupid question but I have just started using Filemaker having always used Access in the past and I am just starting to get to grips with it. I have a database with two tables, Companies and Jobs. Each table has a key field which is an auto number Companies ID and Jobs ID respectively. The Jobs table also has a foreign key of Companies ID which is connected in a one to many relationship to the field of the same name in the Companies table. What I would like to do is open the jobs form from the companies form so that it automatically creates a new record with the Companies ID field in the Job table populated by the relevant information from the Companies table. I hope this makes sense. John
bcooney Posted December 31, 2007 Posted December 31, 2007 Makes perfect sense. There are at least 3 methods to create child records: 1. Allow creation of children directly in a portal by enabling "Allow creation" in the relationship. 2. Give the user a New Child button and use variables to populate the parent foreign key. 3. In a child record, give the user the ability to set the parent foreign key. If the list of possible parents is short, a popup menu is OK. Otherwise, use another method. For example, give them a popup window of parents in a list view, or filtered portal. I've attached a demo that includes all three methods(although you should have either the New Job button or access to edit in the portal, but not both). Topic_192215.zip
Jed69 Posted January 1, 2008 Author Posted January 1, 2008 Thank you so much. This make total sense and is very helpful.
Recommended Posts
This topic is 6230 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now