How to clear data from the page of the OFA

Hello

I want to erase the data on a customized OPS page. I have a page with two fields Start Date and end Date.
These fields do not come from any VO. Here are the fields of input by the user.
When you press the button then submit an array of result is filled on the same page.
But when these parameters are entered again then the data is not refreshed according to the dates of new entries. It remains the same.
I want previous data should have disappeared and the new data should appear when you click on the Send button.
No Clear key should exist separately.

Hi 847828,

You can use the following approach.

Private Sub (pageContext OAPageContext, OAWebBean webBean) filterDataprivate {/ / this method call to your submit button}

Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;
OAViewObject vo = (OAViewObject) am.findViewObject ("yourVOName"); {

Note You can throw NullPointerException if FyourdateParam and TyourdateParam are now worthless
String yourFDate = pageConext.getParameter("FyourdateParam").toString ();
String yourTDate = pageConext.getParameter("TyourdateParam").toString ();

vo.setWhereClause ("s yourTableDate" + yourFDate + "and" + yourTDate);

System.out.println (VO.getWhereClause ()); for debugging purpose

vo.executeQuery ();

}

Tags: Oracle Applications

Similar Questions

Maybe you are looking for