5 Replies Latest reply: Nov 20, 2012 11:50 PM by User10539027-Oracle RSS

    set default value for OAMessageLovInputBean

    User10539027-Oracle
      I have DFF(standard) enabled on the page. The requirement is to disable / hide one of the flex fields on the page. Since the field is read only, I am trying to default the value in CO using below code

      OAPageLayoutBean page = oapagecontext.getPageLayoutBean();
      OAMessageLovInputBean requestor = (OAMessageLovInputBean)page.findChildRecursive( "AuctionHeadersDFFIntF4" );
      if (requestor != null ) {
      requestor.setText("XX");
      requestor.setReadOnly(true);
      }

      Using the above code, the field had become read only and the values is getting defaulted. But when I try to submit / save the page its asking to enter the value.

      Can somebody help me.

      Thanks,
      Pavani