if (“DeleteEvent”.equals(oapagecontext.getParameter(“event”)))
{
String rowReference =
oapagecontext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
OARow currRow = (OARow)oaapplicationmodule.findRowByRef(rowReference);
String QuantityShipped =(new StringBuilder()).append(currRow.getAttribute(“QuantityShipped”)).append(“”).toString();
System.out.println(“QuantityShipped in DeleteEvent”+QuantityShipped);
if(QuantityShipped.equals(“null”))
{
currRow.remove();
oadbtransaction.commit();
throw new OAException(“Record Sucessfully Deleted”,
OAException.CONFIRMATION);
}
else
{
throw new OAException(“Primary line can not deleted”,
OAException.ERROR);
}
}
Recent Posts