Hi, there are probably other ways to doing it, but what comes to mind is:
- Create an action listener for a button on your page - storing the method inside a managed bean or backing bean if you have one created already.
- Inside the action listener method in your bean, add code that will commit the master (department) data first, then detail (employee) data second.
Technically, it probably wouldnt be the same db transaction, but it would all be in the one button click.
Hope that helps!
Gavin | PITSS
here is what i did
I used view links only to link betwwen the parent & child
I created bounded task flow
I dragged and dropped a "createinsert" operation from the master iterator and "createinsert" operation from the detail and linked them to a page
In the page I dragged a form for the master and a table for the detail ( so I can create multiple records)
I added "createinsert" and "delete" operations on the table on the form of ADF Buttons so i can add & remove child records
Here is the problem:
when I enter some data in the parent form and then try adding child records in the table using the buttons, it refreshes the parent form and clears the data in that form