I display a query page.
I enter a set of query parameters.
One row is returned.
I click on the delete icon.
The delete method is called passing the rowid of the current row.
I know the rowid is valid and belongs to the desired row.
(I have queried the database using the rowid.)
So, no in this case it does not seem likely.
/**
*
* Gets Xxdp00OrgDescriptionsVO1 entity object.
*/
public oracle.apps.cust.xxdpOrgDesc.server.Xxdp00OrgDescr iptionsEOImpl getXxdp00OrgDescriptionsVO1()
{
return (oracle.apps.cust.xxdpOrgDesc.server.Xxdp00OrgDesc riptionsEOImpl)getEntity(0);
}
/**
*
* Container's getter for Xxdp00OrgDescriptionsVO1
*/
public Xxdp00OrgDescriptionsVOImpl getXxdp00OrgDescriptionsVO1()
{
return (Xxdp00OrgDescriptionsVOImpl)findViewObject("Xxdp0 0OrgDescriptionsVO");
}
Code:
/*
* Beginning of Delete Method - DeleteOrgDescRow
*/
public void DeleteOrgDescRow( String pAction, String pRowID )
{
System.out.println("xxDebug inside deleteOrgDescRow()") ;
Xxdp00OrgDescriptionsVOImpl orgvo = getXxdp00OrgDescriptionsVO1() ;
System.out.println("ROW_ID IS: "+pRowID) ;
Row row[] = orgvo.getAllRowsInRange();
for ( int i=0;i<row.length;i++)
{
System.out.println("i IS: "+i) ;
Xxdp00OrgDescriptionsVORowImpl rowi = (Xxdp00OrgDescriptionsVORowImpl)row[i];
System.out.println("xxDebug Checking to delete RowID => " + rowi.getRowID());
if (rowi.getRowID().toString().equals(pRowID))
{
rowi.remove();
getOADBTransaction().commit();
return ;
}
}
/*
* End of Delete Method
*/