To remove all rows from a View Object programmatically - i.e. clear or reset the View Object, call its executeEmptyRowSet() method. You can do this anywhere in the context of the Application Module or View Object Implementation.
Example:
// in the context of the Application Module Implementation
ViewObjectImpl vo = this.getSomeViewObject();
vo.executeEmptyRowSet();
Context:
Application Module Implementation
View Object Implementation
Reference:
What Does executeEmptyRowSet() Do?
Hi Nick,
ReplyDeleteNice post. However, would like to know the difference between iterating over the rowset, removing rows one by one and executeemptyrowset().
Which is better and the reason because i found the first method to be used in fusion demo provided by Oracle.
Many thanks in advance