June 4, 200817 yr 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!!
June 4, 200817 yr 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!
Create an account or sign in to comment