add the code in process request for adding a submit button dynamically, can then catch the event in processformrequest.
public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
{
OASubmitButtonBean xx_submitButton =(OASubmitButtonBean)createWebBean(paramOAPageContext,OAWebBeanConstants.BUTTON_SUBMIT_BEAN, null, "xx_submitButton");
xx_submitButton.setLabel("NEW_BUTTON");
xx_submitButton.setText("NEW_BUTTON");
xx_submitButton.setID("NEW_BUTTON");
paramOAWebBean.addIndexedChild(xx_submitButton);
super.processRequest(paramOAPageContext, paramOAWebBean);
}
in PFR
if (oapagecontext.getParameter("xx_submitButton")!= null)
{
try
{
NavigationUtility.forwardToPage(oapagecontext, "GeneralInformationPG", null);
}
catch(Exception e2)
{
oapagecontext.writeDiagnostics(this, "abhishek > xx_button is clicked> catch"+e2, 6);
}
}
No comments:
Post a Comment