Search In This Blog

Tuesday, February 9, 2010

Delete Records from Table (OA Page )

Step 1 :

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);

}
}

2 comments:

  1. 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.

    ReplyDelete
  2. This is the information that I was looking for.. Thanks for the efforts you put to gather such a nice content and posted here.
    Oracle HRMS Training in Hyderabad

    ReplyDelete