I am writing an app where I will need to pop up a form to allow the user to enter data and then pass back at least a portion of that data (an ID perhaps) to the calling form. I have not completely decided how I am going to handle the data portion of the equation but am leaning toward what I will describe below.
The form for client information will have all of the clients general info then has 3 data grids. One each for Addresses, contacts and attorneys. To add, let's say, an address a form would pop up and allow entry of address info upon closing the pop up the address grid would then need to be updated. The addition of the Address touches two tables the Address table and the ClientAddress Table additionally nothing is permanent until the main for saves changes. My thought on this is to add the info to the tables and delete the info from the tables if the form is closed without saving or the undo changes button is clicked. For that I would need the ID's that were created when the data in the pop up was entered. So esentially from a popup I need to pass back to the parent window a table name and ID for each effected table.