Time for action – adding a Commit button to the UI page
Now we will see how we can
expose the built-in Commit
operation to the UI using the data control layer:
In the Data controls palette, as shown in the following screenshot, navigate to EmpDirectoryModuleDataControl:
Under the EmpDirectoryModuleDataControl option, expand the Operations section and select the Commit operation as shown in the preceding screenshot.
Drag this operation to the
index.jspx
page in the Source view and place it just after the</af:table>
tag.Select the ADF Button option from the menu displayed. This action will create a Commit button to save the changes to the database.
The page definition for the
index.jspx
file is accessed by clicking on the Bindings section for the page.
What just happened?
In the previous action exercise, we created a Commit
operation to save the changes made in the UI layer to the database layer. When we select the ADF Button option from the menu, a command button is created in the page...