Add Row Logic in Table Region
Using below code we can build Add Row logic in table region.
if(pageContext.getParameter("AddRow")!=null)
{
if (!vo.isPreparedForExecution())
{
vo.executeQuery();
}
vo.last();
vo.next();
Row row = vo.createRow();
vo.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
}
0 Comments