Oracle Forms to ADF Migration
Estimation
Toggle Bar
  1. admin
  2. ADF Code Snippets
  3. Tuesday, August 20 2019, 01:29 PM
  4.  Subscribe via email

public void deleteEmp()
{
OAViewObject vo = (OAViewObject)getEmpDetailsVO1();
EmpDetailsVORowImpl row = null;
int fetchedRowCount = vo.getFetchedRowCount();
int savedRangeSize = 0;
int savedRangeStart = 0;
if (fetchedRowCount > 0)
{
savedRangeSize = vo.getRangeSize();
savedRangeStart = vo.getRangeStart();
vo.setRangeStart(0);
vo.setRangeSize(fetchedRowCount);
setRangeStart(0);
setRangeSize(fetchedRowCount);
Row[] rows = vo.getAllRowsInRange();
for (int i = 0; i < fetchedRowCount; i++)
{
if (rows[i] != null &&
"Y".equals(rows[i].getAttribute("SelectFlag")))
//call to delete api
{
rows[i].remove();
} }
}
vo.setRangeSize(savedRangeSize);
vo.setRangeStart(savedRangeStart);
}
Rate this post:


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Login

Cron Job Starts