rwdds Posted March 18, 2011 Posted March 18, 2011 I’m a newb trying to understand FM relational design. My question is, if 2 tables are properly defined with a relationship and a new recored is created in the parent table, is a new [related] record automatically created in the child table? If not, what are the basic scripting elements to create the related record and programmatically populate fields with data? No portals are being utilized for this project.
comment Posted March 18, 2011 Posted March 18, 2011 is a new [related] record automatically created in the child table? No. If it were, it would be entirely empty except for the parent ID, thus useless. If not, what are the basic scripting elements to create the related record If you don't use a portal, it's best to put the current parent's ID in a script variable (or script parameter), go to a layout of the child table, create a new record and set the foreign key with the value in the $variable (or parameter). Then proceed to populate the child fields.
rwdds Posted March 18, 2011 Author Posted March 18, 2011 TU! Apologies for the 2 posts. Right after I posted the first, then realized I was in an FM 9 area, didn't think anyone would reply!
Lee Smith Posted March 19, 2011 Posted March 19, 2011 You need to read the descriptions better. The General Topics for each Version is for discussion of the new tools that came out with that particular version. We have a category for Relationships, which is were you will find this in a few minutes. Lee
Recommended Posts
This topic is 5059 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