Create method in application module as
public void deleteitemMethod(String pAction,String pEntityCode)
{
/*System.out.println("xxDebug Inside deleteItemMethod());*/
XxTest01ViewImpl pervo=getXxTest01View1();
System.out.println(pEntityCode);
Row row []=pervo.getAllRowsInRange();
for (int i=0;i
XxTest01ViewRowImpl rowi=(XxTest01ViewRowImpl)row[i];
if (rowi.getEntityCode().toString().equals(pEntityCode))
{
rowi.remove();
getDBTransaction().commit();
return;
}
}
}
2) Call this method in your controller class's process form request as
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processFormRequest(pageContext, webBean);
String actionInMainPage = pageContext.getParameter(EVENT_PARAM);
String paramEntityCode = pageContext.getParameter("paramEntityCode");
if (actionInMainPage.equals("deleteitem"))
{
Serializable paramdelete []={actionInMainPage,paramEntityCode};
OAApplicationModule am =pageContext.getApplicationModule(webBean);
am.invokeMethod("deleteitemMethod",paramdelete);
}
}
Its impressive to know something about your note on Oracle apps Course. Please do share your articles like this your articles for our awareness. Mostly we do also provide Online Training on Cub training oracle apps course.
ReplyDeleteThis is the information that I was looking for.. Thanks for the efforts you put to gather such a nice content and posted here.
ReplyDeleteOracle HRMS Training in Hyderabad