package hs.oracle.apps.pos.changeorder.webui;
import com.sun.java.util.collections.HashMap;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.OARow;
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean;
import oracle.apps.pos.changeorder.webui.ViewPOControlsCO;
import oracle.cabo.ui.action.FireAction;
import oracle.cabo.ui.action.FirePartialAction;
import oracle.jbo.Row;
public class XXViewPOControlsCO extends ViewPOControlsCO
{
public XXViewPOControlsCO()
{
}
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processRequest(pageContext, webBean);
OAApplicationModule am =(OAApplicationModule)pageContext.getRootApplicationModule();
if(am!=null)
{
OAViewObject vo = (OAViewObject)am.findViewObject("PosViewHeadersVO");
if(vo!=null)
{
Row row = (OARow)vo.getCurrentRow();
}
OAButtonBean btn =(OAButtonBean)webBean.findChildRecursive("xxpdf");
if(btn!=null)
{
FireAction firePartialAction = new FirePartialAction("notifyBtn");
btn.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
btn.setText("View PDF");
}
}
}
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processFormRequest(pageContext, webBean);
String str1 =pageContext.getParameter("event");
OAApplicationModule am =(OAApplicationModule)pageContext.getRootApplicationModule();
if(am!=null)
{
OAViewObject vo = (OAViewObject)am.findViewObject("PosViewHeadersVO");
if(vo!=null)
{
Row row = (OARow)vo.getCurrentRow();
pageContext.writeDiagnostics(this,"This is PFR POHEADERID:"+row.getAttribute("PO_HEADER_ID"),1);
}
OAButtonBean btn =(OAButtonBean)webBean.findChildRecursive("xxpdf");
if("notifyBtn".equals(str1))
{
pageContext.setForwardURL("OA.jsp?OAFunc=PO_ORDER&poMode=viewOnly&poCallingModule=notification&poHideUpdate=Y&retainAM=Y&addBreadCrumb=Y&poHeaderId="+vo.getCurrentRow().getAttribute("PO_HEADER_ID"),
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true,//retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES);
}
}
}}
Thanks,
Dilip
import com.sun.java.util.collections.HashMap;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.OARow;
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean;
import oracle.apps.pos.changeorder.webui.ViewPOControlsCO;
import oracle.cabo.ui.action.FireAction;
import oracle.cabo.ui.action.FirePartialAction;
import oracle.jbo.Row;
public class XXViewPOControlsCO extends ViewPOControlsCO
{
public XXViewPOControlsCO()
{
}
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processRequest(pageContext, webBean);
OAApplicationModule am =(OAApplicationModule)pageContext.getRootApplicationModule();
if(am!=null)
{
OAViewObject vo = (OAViewObject)am.findViewObject("PosViewHeadersVO");
if(vo!=null)
{
Row row = (OARow)vo.getCurrentRow();
}
OAButtonBean btn =(OAButtonBean)webBean.findChildRecursive("xxpdf");
if(btn!=null)
{
FireAction firePartialAction = new FirePartialAction("notifyBtn");
btn.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
btn.setText("View PDF");
}
}
}
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processFormRequest(pageContext, webBean);
String str1 =pageContext.getParameter("event");
OAApplicationModule am =(OAApplicationModule)pageContext.getRootApplicationModule();
if(am!=null)
{
OAViewObject vo = (OAViewObject)am.findViewObject("PosViewHeadersVO");
if(vo!=null)
{
Row row = (OARow)vo.getCurrentRow();
pageContext.writeDiagnostics(this,"This is PFR POHEADERID:"+row.getAttribute("PO_HEADER_ID"),1);
}
OAButtonBean btn =(OAButtonBean)webBean.findChildRecursive("xxpdf");
if("notifyBtn".equals(str1))
{
pageContext.setForwardURL("OA.jsp?OAFunc=PO_ORDER&poMode=viewOnly&poCallingModule=notification&poHideUpdate=Y&retainAM=Y&addBreadCrumb=Y&poHeaderId="+vo.getCurrentRow().getAttribute("PO_HEADER_ID"),
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true,//retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES);
}
}
}}
Thanks,
Dilip
1 comment:
HI dillip , how can i contact personally, i have a urgent requirement
Post a Comment