This discussion is archived
4 Replies Latest reply: Jul 15, 2013 3:55 AM by Abbas85 RSS

Noting is happening in PFR()

Abbas85 Explorer
Currently Being Moderated

Hi All,


I have a custom CO which extends to seeded CO.Now I am updating that custom CO.I did some changes in pr() and it running fine.

But I am trying to do change in pfr() it doesnt shows any changes....


following is my code for custom CO:


public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)


    String sEvent = pageContext.getParameter("event");


    if(isLoggingEnabled(pageContext, 1))


     pageContext.writeDiagnostics(this,"processFormRequest in ExCheckoutSummaryCO", 1);

     pageContext.writeDiagnostics(this, "event: "+ sEvent, 1);


    if("editLines".equals(sEvent)) //check if it is Review GL Button click


     pageContext.putTransactionValue("CHECK_RV_GL_BUTTON","YES"); //store a transaction value and then retrieve it on next button

     pageContext.writeDiagnostics(this, "put YES into CHECK_RV_GL_BUTTON transaction value", 1);






     String sTransVal =(String) pageContext.getTransactionValue("CHECK_RV_GL_BUTTON" );//retrieve the transaction value on next

     pageContext.writeDiagnostics(this, "get trans "+ sTransVal, 1);

     if(sTransVal == null) //if trans value is null then user has not clicked on review gl button and so throw the error


       throw new OAException("ICX","VYOM_IPROC_V8_MSG");




      // CHG37594: Check For Don't Know option // here my code start


     OAMessageChoiceBean oamessagechoicebean = (OAMessageChoiceBean)webBean.findChildRecursive("Taxable");

    pageContext.writeDiagnostics(this, "getting messageChoiceBean value in pfr()", 1);

     if(oamessagechoicebean != null )


         String TaxableValue = (String)oamessagechoicebean.getAttributeValue("LookupCode");

         pageContext.writeDiagnostics(this, "getting Taxable value in pfr()"+TaxableValue, 1);

             if (TaxableValue == "SYSTEM")


            pageContext.writeDiagnostics(this, "if taxable is system in pfr() before"+TaxableValue, 1);

            throw new OAException("Select Yes OR No",OAException.ERROR);



    }//here my code ends



    super.processFormRequest(pageContext, webBean);




kindly help me out...




  • Correct Answers - 10 points
  • Helpful Answers - 5 points