Conditionally inserting new rows at the end of the rowset
When you insert a new row into a rowset, by default the new row is inserted at the current slot within that rowset. There are times, however, that you want to override this default behavior for the application that you are developing.
In this recipe, we will see how to conditionally insert new rows at the end of the rowset by implementing generic programming functionality at the base view object framework implementation class.
Getting ready
You will need to have access to the shared components workspace that was developed in the Breaking up the application in multiple workspaces recipe in Chapter 1, Pre-requisites to Success: ADF Project Setup and Foundations. The functionality will be added to the ExtViewObjectImpl
custom framework class that was developed in the Setting up BC base classes recipe in Chapter 1,Pre-requisites to Success: ADF Project Setup and Foundations.
How to do it...
1. Open the
ExtViewObjectImpl.java
custom view object...