There are 4 ways to get the value of MessageStyled text from OAF page in CO.
First Option
=========
Get the handler of the VO which is used by that field.
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.OARow;
OAViewObject vo = (OAViewObject)am.findViewObject("PosViewHeadersVO");
if(vo != null)
{
try
{
vo.reset();
vo.next();
OARow row = (OARow)vo.getCurrentRow();
confirm_flag_vo = (String)row.getAttribute("Confirm");
}
catch(Exception e)
{
oapagecontext.writeDiagnostics(this,"Exception occurred " + e.toString() ,OAFwkConstants.STATEMENT);
}
}
Second Option
==============
Get the handler of the bean and use that handler to get the value.
import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
OAMessageStyledTextBean oaconfirmflag = (OAMessageStyledTextBean)oawebbean.findChildRecursive("PosConfirm");
String confirm_flag_bean = null;
confirm_flag_bean = (String)oaconfirmflag.getText(oapagecontext);
Third Option
===========
Get the handler of the item using getParameter() method.
String confirm_flag_getparam = null;
confirm_flag_getparam = (String)oapagecontext.getParameter("PosConfirm");
Fourth Option
==========
Write a SQL query in your CO and parse the SQL statement. I have used this method in my previous post.
First Option
=========
Get the handler of the VO which is used by that field.
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.OARow;
OAViewObject vo = (OAViewObject)am.findViewObject("PosViewHeadersVO");
if(vo != null)
{
try
{
vo.reset();
vo.next();
OARow row = (OARow)vo.getCurrentRow();
confirm_flag_vo = (String)row.getAttribute("Confirm");
}
catch(Exception e)
{
oapagecontext.writeDiagnostics(this,"Exception occurred " + e.toString() ,OAFwkConstants.STATEMENT);
}
}
Second Option
==============
Get the handler of the bean and use that handler to get the value.
import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
OAMessageStyledTextBean oaconfirmflag = (OAMessageStyledTextBean)oawebbean.findChildRecursive("PosConfirm");
String confirm_flag_bean = null;
confirm_flag_bean = (String)oaconfirmflag.getText(oapagecontext);
Third Option
===========
Get the handler of the item using getParameter() method.
String confirm_flag_getparam = null;
confirm_flag_getparam = (String)oapagecontext.getParameter("PosConfirm");
Fourth Option
==========
Write a SQL query in your CO and parse the SQL statement. I have used this method in my previous post.
No comments:
Post a Comment