Enuma Posted June 4, 2008 Posted June 4, 2008 I have a table related to its child,(that holds related data),the relation is built by auto generated serial(like usual) The portal works all fine and always create a new records as its past on is filled. But i want to create a button that creates new rows without being needed filling past records. Will help alot in IWP!!
Fitch Posted June 4, 2008 Posted June 4, 2008 I'm not exactly sure what you mean, but one way to create a new related record is to grab the parent record's ID: Set Variable( $id; ID ) ... then go to a layout based on the child records; create a new record; and set the foreign key to the variable: Set Field( Parent ID ; $id ) ... then go back to the original layout and you're done!
Recommended Posts
This topic is 6353 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