Application Module Code
import oracle.jbo.RowSetIterator;
public void checkSelectedrow()
{
OAViewObject vo = getTeamRoleListVO1();
int fetchedRowCount = vo.getFetchedRowCount();
RowSetIterator selectIter = vo.createRowSetIterator("selectIter");
if (fetchedRowCount > 0)
{
// Save the original range size and range start.
selectIter.setRangeStart(0);
selectIter.setRangeSize(fetchedRowCount);
//Creates a Transient Attribute of "String" type.
for (int i = 0; i < fetchedRowCount; i++)
{
TeamRoleListVORowImpl rowi = (TeamRoleListVORowImpl)selectIter.getRowAtRangeIndex(i);
String selectFlag = rowi.getSelectFlag()+"";
if("Y".equals(selectFlag )
{
// Getting selected row.
}
}
}
selectIter.closeRowSetIterator(); }
Hi Anil,
ReplyDeleteHow will the value be set for attribute 'selectFlag'? Is it done automatically?
-Murugan-
Great, it worked.
ReplyDelete