This discussion is archived
5 Replies Latest reply: Nov 20, 2012 9:50 PM by user18931 - oracle RSS

set default value for OAMessageLovInputBean

user18931 - oracle Newbie
Currently Being Moderated
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

Legend

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