Monday, November 8, 2010

Inserting a Row at the End of an OAF Table / Advanced Table

OAF inserts table rows on zero index by default. However there are times that you want to insert a row at the end of the table and you could accomplish that by:

OARow oaRow = (OARow) VOImpl.createRow();
VOImpl.setRangeSize(VOImpl.getRowCount() + 1);
VOImpl.insertRowAtRangeIndex(VOImpl.getRowCount(), oaRow);

not straightforward but it works :)

2 comments: