Default value in text field in OAF

1- All the steps are same from project creation upto page creation.
2- Create and edit the controller
Add Following Code in processRequest
 import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
{
 super.processRequest(pageContext, webBean);
 String myValue = "My Default Value";
 OAMessageTextInputBean textBean = (OAMessageTextInputBean)webBean.findChildRecursive("MyTextitemId");
 textBean.setValue(pageContext, myValue);
}

MyTextitemId is the field where the gunuine field name will be replace, while rest of the code is same.

1 comment:

  1. This comment has been removed by the author.

    ReplyDelete