// Deleting Direclty In Controller
// Controller CODE
/////////////////////Delete Load Table/////////////////////////////////////////
if ("delete".equals(pageContext.getParameter("event")))
{
String rowReference = pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
System.out.println(rowRef);
ARow currRow = (OARow)am.findRowByRef(rowReference);
currRow.remove();
}
/********************************************************************************/
// Deleting In AM
// Controller CODE
/////////////////////Delete Load Table/////////////////////////////////////////
if ("DelCommRows".equals(pageContext.getParameter(EVENT_PARAM)))
{
String rowRef = pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
System.out.println(rowRef);
Serializable [] param={rowRef};
am.invokeMethod("deleteRec",param);
}
// AM CODE
/////////////////////Delete Load Table/////////////////////////////////////////
public void deleteRec(String ref)
{
Row r = findRowByRef(ref);
r.remove();
getTransaction().commit();
}
// Controller CODE
/////////////////////Delete Load Table/////////////////////////////////////////
if ("delete".equals(pageContext.getParameter("event")))
{
String rowReference = pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
System.out.println(rowRef);
ARow currRow = (OARow)am.findRowByRef(rowReference);
currRow.remove();
}
/********************************************************************************/
// Deleting In AM
// Controller CODE
/////////////////////Delete Load Table/////////////////////////////////////////
if ("DelCommRows".equals(pageContext.getParameter(EVENT_PARAM)))
{
String rowRef = pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
System.out.println(rowRef);
Serializable [] param={rowRef};
am.invokeMethod("deleteRec",param);
}
// AM CODE
/////////////////////Delete Load Table/////////////////////////////////////////
public void deleteRec(String ref)
{
Row r = findRowByRef(ref);
r.remove();
getTransaction().commit();
}
No comments:
Post a Comment