Wednesday, April 7, 2010

Bit #6 - Removing all rows from a View Object

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?

1 comment:

  1. Hi Nick,

    Nice 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

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...