On the insert page you can open the main table insert server behavior and see what the Save As field is set to. It will store the newly inserted ID as a session variable with that name. Then you can use that when inserting to the joined tables after.
On the update page, open the main table update server behavior and see what the Update key value field is set to. You can copy and paste that value for the ID in the joined tables.