Hello friends, I have the following problem: In a certain part of the app I need to register a Customer entity. Each Customer entity has multiple Contacts entity. Then in the screen I'd have a registration with a shadowbox frame to add, edit and delete Contacts. I need Customer and the Contacts are inserted into the database only after clicking the save button on the screen of the Customer.
At first I thought to create a session with a new Customer so that the user enters the screen to register. Every time I enter a new Contact I would insert the Customer's session. After clicking save I would insert the Customer session in the database. It would work fine if the user not to open multiple screens register. I have no idea how to solve this problem. Anyone idea how I can create a session for each screen to register the user to open? The same logic is also applied to the editing screen. thnx!
