tag:blogger.com,1999:blog-3599381392137085606.post8934763371865071573..comments2022-03-29T17:12:09.759-07:00Comments on ADF Tips and Tricks: Insert new row at the end of an ADF TableRahul Kumar http://www.blogger.com/profile/05481011239240475608noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3599381392137085606.post-43990388312097935342015-04-14T06:52:35.621-07:002015-04-14T06:52:35.621-07:00Thanks for alternate method, I will test and updat...Thanks for alternate method, I will test and updateRahul Kumar https://www.blogger.com/profile/05481011239240475608noreply@blogger.comtag:blogger.com,1999:blog-3599381392137085606.post-11269962041425498782015-04-14T04:25:07.194-07:002015-04-14T04:25:07.194-07:00Another way to achieve the above functionality is ...Another way to achieve the above functionality is as follows :<br /><br />DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("VOIteratorName");<br />if(dciter != null){<br />System.out.println("VO IS NOT NULL...");<br />}<br />else{<br />System.out.println("VO IS NULL....");<br />}<br /><br />RowSetIterator rsi = dciter.getRowSetIterator();<br />//get handle to the last row<br />Row lastRow = rsi.last();<br />//obtain the index of the last row<br />int lastRowIndex = rsi.getRangeIndexOf(lastRow);<br />//create a new row<br />Row newRow = rsi.createRow();<br />//initialize the row<br />newRow.setNewRowState(Row.STATUS_INITIALIZED);<br />//add row to last index + 1 so it becomes last in the range set<br />rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow); <br />//make row the current row so it is displayed correctly<br />rsi.setCurrentRow(newRow);BOSShttps://www.blogger.com/profile/06406154213896307210noreply@blogger.comtag:blogger.com,1999:blog-3599381392137085606.post-63374717765777823362015-04-14T04:23:41.135-07:002015-04-14T04:23:41.135-07:00This comment has been removed by the author.BOSShttps://www.blogger.com/profile/06406154213896307210noreply@blogger.com