Code OARF=printable

My customer has a customize OAF page and coded following OAF Developers Guide
to show their customize OAF page with a printable page after clicking 'Printable Page' button
with code OARF=printable. In R11i, on the printable page, only buttons other than this
'Printable Page' button is shown but after upgrading to R12.1.3, the printable page shows up
with the 'Printable Page' button as well.
In R11.5.10.2, their printable page shows the OAF page without the button
(button for printable page), but now in R12.1.3, the same code shows the button.
The only difference between this 'Printable Page' button and other buttons on the custom
OAF page is that, the ItemStyle=SubmitButton is not shown in the printable page
in both R11i and R12, but this 'Printable Page' button is defined with ItemStyle=button.
Is this specification of R12? If there is a way to hide the 'Printable Page' button in the printable page,
Since this is working correctly in R11i and after upgrade to R12.1 without changing any code,
the page shows with the 'Printable Page' button, this issue should be supported.
Any workaround

ok here is an example :
on my custom page, there are few fields based on which user can search model info . search displays all the documents(or should say the data available on that model) from custom table - ex-
1. document name = Proc2009 , revision =1 , model = A1 , viewicon
2. document name = Proc2009 , revision =2 , model = A1 , viewicon
3. document name = Proc2009 , revision =1 , model = A2 , viewicon
if user picked viewicon for either row1 or row2 (that is data for model A1) : fields to be rendered on the oaf page are say:
width , make, engine, setup_info.
But if user picks row 3 - Model A2, fields to be displayed on the webpage are -
width,make, X-axis,Y-Axis, Provision_info, setup_info
I did not use PPR to hide the fields based on the model but set the property of the attribute setRendered(true or false) in process request. reason being its a very complex matrix, and there are many variants. All this works fine. When I add printable page button, it shows up correctly, but hides some fields that should be there for Model A1 and shows some field for Model A2.
I need get the printable page only for this set(Proc2009, rev=1, model=A1).
did i explain it better this time ?
How can I do it ?
thanks

Similar Messages

  • "Printable Page" button causes isBackNavigationFired(true)

    I ve got the following problem
    I have a train implemented with 3 pages. On every page we don't allow the users to use the BrowserBack button.
        if (pageContext.isBackNavigationFired(true))
          pageContext.redirectToDialogPage(new OADialogPage(NAVIGATION_ERROR));
        }     Page 3 (Review page) contains the "submit" and a "Printable Page" button.
    Properties for "Printable Page" button
    destination URI : OA.jsp?page=pagePG&retainAM=Y&OARF=printable
    target frame : _blank
    When we press the submit button, everything is saved correctly. but when we first use the "Printable Page" button (opens a new window) and then submit, the OA framework detects that we used the BroweserBack Button. Submitting the data becomes impossible.
    Does anyone knows what I'm doing wrong, or is this normal behaviour.

    Hi,
    You will not be able to get around this. When you navigate to your printable page, the framework increments the oapc parameter (it adds 1 to the original value). When you then go back and action something on the previous page, the framework compares the value in the URL with the value it stores in memory. If the values do not match it re-fires processRequest because the bean hierarchy could be invalid (it's probably not in your case).
    So you will have to think of a way around this.
    Why are you not letting users use the back button? You can write your application so that you code around any use of the back button. For example, if you are passing parameters on the request, put them on the transaction. When the user hits the back button, OA Framework will re-execute processRequest, if the parameters are null you can fetch them from the transaction (assuming it is retained).
    Hope this helps.
    Cheers,
    Dave

  • Logo in a printable page.

    Hello,
    I created a printable page in OAF custom page using the below code in the button's "Destination URL" property.
    OA.jsp?page=/xx/oracle/apps/per/selfservice/offier/webui/OfficePG&retainAM=Y&OARF=printable
    This brings up a printable page but i don't see the logo(which is at top left corner) in this printable page. Is there any way i can also put a logo in the printable page?
    Thanks in advance.
    -KK

    I had to create an itemtype of Image inside one of the page layouts and add the image instead of using the standard corporateBranding image to solve this issue.

  • Data is not displaying in printable page

    i have used
    Destination URI : OA.jsp?OAFunc=GNW_COMPENSATION_STMT_FUNC&OARF=printable
    Target Frame : _blank
    CO
    super.processRequest(pageContext, webBean);
    // GCSAMImpl AM=(GCSAMImpl)pageContext.getApplicationModule(webBean);
    OAApplicationModule AM = pageContext.getApplicationModule(webBean);
    String employeeNumber = pageContext.getParameter("employeeNumber");
    // OARawTextBean TipText = (OARawTextBean)webBean.findChildRecursive("TipMessage");
    // TipText.setText(pageContext.getMessage("PER","GNW_COMPENSATION_PAGE_TEXT", null));
    OAFormattedTextBean TipText = (OAFormattedTextBean)webBean.findChildRecursive("TipMessage");
    TipText.setText(pageContext.getMessage("PER","GNW_COMPENSATION_PAGE_TEXT", null));
    OAFormattedTextBean TipText1 = (OAFormattedTextBean)webBean.findChildRecursive("TipMessage1");
    TipText1.setText(pageContext.getMessage("PER","GNW_COMP_STMT_TEXT", null));
    Serializable[] param = {employeeNumber};
    AM.invokeMethod("initdetails",param);
    HashMap params = new HashMap(2);
    // Replace the current poEvent request parameter value with "X"
    params.put("employeeNumber", employeeNumber);
    // AM.initdetails(employeeNumber);
    AM
    public void initdetails(String user_name)
    GnwEmpCompDetailsVOImpl cpVO=getGnwEmpCompDetailsVO1() ;
    cpVO.setWhereClauseParams(null);
    cpVO.setWhereClause("EMPLOYEE_SSO= :1");
    cpVO.setWhereClauseParam(0,user_name);
    cpVO.executeQuery();
    // System.out.println("query::"+cpVO.getQuery());
    Anyone Could help me on this...
    Thanks,
    Janardhan

    Hi,
    Have you  assigned the user to a person in infotype 102? and Has user Authorization for PP_MY_APP
    transaction? if not check the same in Production and Role in R/3 also.
    Thnx
    Suriya

  • Printable page's with buttons

    Hi all,
    In some of the custom page's we have a printable page button where user can take print out of page from PRINT option in FILE menu .
    Recently we have upgraded to R12 and we are facing a strange issue where when we click printable page button we are getting buttons on that page .
    Generally, printable page is a Read only page which will not be having any navigation, action controls(Buttons), It will be an image of our original OAF Page .
    Pls help me on this as client dont want to have any buttons on that page .
    Properties :-
    item :- PrintView
    item style :- button
    Attribute set :- /oracle/apps/fnd/attributesets/Buttons/PrintablePage
    Destination URI :- OA.jsp?page=/who/oracle/apps/xxwp/wp/shareallocation/webui/XXWPSearchSOAPG&retainAM=Y&OARF=printable
    Target Frame :- _blank
    Regards
    Karandeep Singh

    hello peter.
    im still on cs4,i have seen the new cs5 features but havent updated yet.and thanks for that spread view it did work.as well as bobs help by
    viewing it in the pdf using view>2-up page.
    best regards.

  • Image not printed on OAF Printable Page

    Hi All,
    I have developed a page and it has "Printable Page" .
    This page has one logo(image) and it is displayed when I am running the page but not diplayed when I click on "Printable Page" button.
    How to achieve this.
    Please help me.
    Thanks,
    Sai

    Hi,
    In attribute set and destination url we have given '/oracle/apps/fnd/attributesets/Buttons/PrintablePage' AND 'OA.jsp?page=/oracle/apps/per/glade/webui/XXPG&retainAM=Y&OARF=printable' properties.
    Now it working fine after uploading into the server.
    But in printable page we do not want to display the URL's.How to achieve that?.In text formate that url was appearing.
    Regards
    Sai Krishna.

  • How to pass _ti value to javascript's window in Destination URI of Button

    How to pass _ti value to javascript's window in personalization's Destination URI of  a Button.
    In Self-Service HR, under my benefit's final confirmation page, I added a new button,
    when clicked would do a javascript alert saying "You have successfully completed your 2008 Benefit Enrollment Process". After clicking ok button, it takes to a printable page.
    Here is my code in the Destination URI field
    javascript:onClick=alert('You have successfully completed your 2008 Benefit Enrollment Process'); window.location='OA.jsp?page=/oracle/apps/ben/selfservice/enrollment/webui/EnrlConfPG&retainAM=Y&OARF=printable';
    The alert works but after clicking ok, I get error.
    Looks like it is expecting ti value in the URL and if I pass ti value like this, it works
    window.location='OA.jsp?page=/oracle/apps/ben/selfservice/enrollment/webui/EnrlConfPG&retainAM=Y&OARF=printable&_ti=800699419'
    But where do I get the real ti value? instead of hard-coded value, as ti is not constant and it changes for each login or session
    ERROR was:
    oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:597)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1134)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2297)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1710)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:501)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:422)
         at oa_html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._OA._jspService(_OA.java:98)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.apps.ben.selfservice.enrollment.webui.ConfirmationCO.processRequest(ConfirmationCO.java:158)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:581)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1134)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2297)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1710)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:501)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:422)
         at oa_html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._OA._jspService(_OA.java:98)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    java.lang.NullPointerException
         at oracle.apps.ben.selfservice.enrollment.webui.ConfirmationCO.processRequest(ConfirmationCO.java:158)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:581)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1134)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2297)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1710)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:501)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:422)
         at oa_html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._OA._jspService(_OA.java:98)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    Please help!
    Thanks

    Burkepm,
    Two things:
    1)Don't use .showModalDialog api of MSDN library, because its only applicable to modal dialog pages in IE.This api won't work on any other browser. Moreover,u will need to add
    < base target="_self " />
    under <head> tag of pop up page. This is required because imodal window api of javascript provided in MSDN would not be able to recognize its parent window with out this.
    So,its not possible to close the pop up window and submit data to the base page form by submitting the page when we close the pop up.
    You can OAF js function for openeing the pop up window.
    2)Secondly, there is way to invoke js pop window function without setting profiles I have mentioned in my blog.This is basically through bound values, for ehich url is genaradted dybnamically, so there is no MAC key url validation.
    Here is the code u need to use this code in process request.:
    import oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean;
    import oracle.apps.fnd.framework.webui.OABoundValueEmbedURL;
    OAButtonBean btn = (OAButtonBean)webBean.findChildRecursive("<button item id>");
    String page= "/xxx/oracle/apps/XXX/abc/webui/xxxPg&retainAM=Y";
    String destURL = APPS_HTML_DIRECTORY + OAWebBeanConstants.APPLICATION_JSP + "?"+ OAWebBeanConstants.JRAD_PAGE_URL_CONSTANT+ "=" + page;
    OABoundValueEmbedURL jsBound = new OABoundValueEmbedURL(btn,"openWindow(self, '", destURL, "' , 'longTipWin', {width:"+900+", height:"+500+"}, true); return false;");
    btn.setAttributeValue(oracle.cabo.ui.UIConstants.ON_CLICK_ATTR, jsBound);
    I hope this helps.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Print Page in OAF

    Hi,
    I have implemented a search region in the custom page. When i search based on a date, it displays the records of the employees based on the dates. Now, here is what i need to accomplish.
    If there are around 10,000 records being displayed and each record has the employee name, number, date of birth, etc etc, then i want all the records to be displayed in a single page and when i give the print option, i need to print all the records.
    Is this achievable?
    Thank you everyone.
    Jim.

    Hi,
    On any page that should have a printable state:
    Step 1: Add a page-level button .
    Step 2: Assuming your button label is the standard "Printable Page," apply the OA Framework attribute set /oracle/apps/fnd/attributesets/Buttons/PrintablePage.
    Step 3: Set the button's Destination URI property to point to the current page and set the UIX facet parameter (OARF) to printable as shown in the following example (See Controlling UIX Rendering Output for additional information about facets). Remember to retain your application module.
    OA.jsp?page=<CURRENT_PAGE>&retainAM=Y&OARF=printable
    Note: Earlier versions of OA Framework recommended giving the printable page submit button the ID IcxPrintablePageButton. OA Framework detects this ID and behaves appropriately when the user presses the button. Although this still works, new code leverages the facets approach instead.
    Step 4: Set the button's Target Frame property to _blank to ensure that the printable page opens in a new window.
    Regards,
    Guru Krishnan V.

  • Prinatble page button help ??

    On my oaf view page I have Printable button but I get this error :
    ## Detail 0 ##
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    there are 2 View objects that get refreshed on view page and both require parameters in their query.
    Construction of printable page button :
    <oa:button id="printablePage" text="Printable Page" targetFrame="" use="/oracle/apps/fnd/attributesets/Buttons/PrintablePage" destination="OA.jsp?OAFunc=MASETUPSHEETVIEW&amp;retainAM=Y&amp;OARF=printable"/>
    here is the code in controller tio invoke 2 diff methods :
    ProcessRequest ----
    String OrgId = "102";
    String paramActionType = pageContext.getParameter("paramActionType");
    String vpInvItemId = pageContext.getParameter("viewInvItemId");
    String vpMachine = pageContext.getParameter("viewMachine");
    String vpSetNumber = pageContext.getParameter("viewSetNumber");
    String vpRevision = pageContext.getParameter("viewRevision");
    String vpCategory = pageContext.getParameter("viewCategory");
    renderFieldsInUI(vpMachine,vpCategory,webBean) ;
    Serializable paramList1[]= {vpInvItemId,vpMachine,vpSetNumber,vpRevision,paramActionType};
    am.invokeMethod("updateWS", paramList1);
    Serializable paramList2[]= {vpInvItemId,vpMachine,vpSetNumber,paramActionType,vpRevision};
    am.invokeMethod("initToolsData", paramList2);
    page displays correct data, and I want this data to be visible on printable page.
    please help.
    thanks

    ok here is an example :
    on my custom page, there are few fields based on which user can search model info . search displays all the documents(or should say the data available on that model) from custom table - ex-
    1. document name = Proc2009 , revision =1 , model = A1 , viewicon
    2. document name = Proc2009 , revision =2 , model = A1 , viewicon
    3. document name = Proc2009 , revision =1 , model = A2 , viewicon
    if user picked viewicon for either row1 or row2 (that is data for model A1) : fields to be rendered on the oaf page are say:
    width , make, engine, setup_info.
    But if user picks row 3 - Model A2, fields to be displayed on the webpage are -
    width,make, X-axis,Y-Axis, Provision_info, setup_info
    I did not use PPR to hide the fields based on the model but set the property of the attribute setRendered(true or false) in process request. reason being its a very complex matrix, and there are many variants. All this works fine. When I add printable page button, it shows up correctly, but hides some fields that should be there for Model A1 and shows some field for Model A2.
    I need get the printable page only for this set(Proc2009, rev=1, model=A1).
    did i explain it better this time ?
    How can I do it ?
    thanks

  • How to print an RN

    Hi,
    I have created a "Printable Page" button using the tutorial. I have created the button using jDeveloper (I have added the parameter OARF=printable at the button's URI) . When I click the button a new window appears with the page that I want to print.
    My problem is that I don't want to print the whole page but only a specific region (RN) that is inside the page. How can I make it that in the new window only the desired region will be displayed.
    Is there another way to print a specific region from the page?
    Thanks

    you should programmatically hide all other regions..
    use the following code in the processRequest()
    import oracle.apps.fnd.framework.webui.laf;
    if (LafUtils.isPrintableFacet(pageContext))
    // Printable page mode processing
    // Hide the unwanted regions here
    else
    // Normal page processing
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Print Page Issue

    Hi All,
    How can I print Oracle Logo and Product Branding Text in printable page.
    Thanks
    Ajay

    Hi Kumar,
    I have not done any coding part for print page. I have just did the steps mentioned in DEV Guide
    Step 1: Add a page-level button as described in the Buttons (Action/Navigation) document.
    Step 2: Assuming your button label is the standard "Printable Page," apply the OA Framework attribute set
    /oracle/apps/fnd/attributesets/Buttons/PrintablePage.
    Step 3: Set the button's Destination URI property to point to the current page and set the UIX facet parameter (OARF) to printable as shown in the following example (See Controlling UIX Rendering Output for additional information about facets). Remember to retain your application module.
    OA.jsp?page=<CURRENT_PAGE>&retainAM=Y&OARF=printable
    Note: Earlier versions of OA Framework recommended giving the printable page submit button the ID IcxPrintablePageButton. OA Framework detects this ID and behaves appropriately when the user presses the button. Although this still works, new code leverages the facets approach instead.
    Step 4: Set the button's Target Frame property to _blank to ensure that the printable page opens in a new
    window.
    Thanks
    Ajay

  • How to use destination function for javascript

    Hi,
    I used javascript:var a = window.open('OA.jsp?page=/oracle/apps/cdar/admin/brandupload/webui/SupportPG&retainAM=Y&OARF=printable', 'a','height=500,width=900,menubar=yes,toolbar=yes,location=yes'); a.focus(); in destination URL property, it can work to popup another window.
    But I want to setup a Oracle function for this javascript, and use Destination FUNC property on the button to popup window. But it can not work after I setup a SSWA jsp function with WEB HTML.
    Could some one help this?
    Thanks,
    Eileen

    Eileen,
    How are you adding the OA function ? I have also tried destination url property but not the destination function.Probably you should do sth like this :
    In ProcessRequest :-
    <OABean> <var name> = (<OABean>)webBean.findChildRecursive("<Bean Id>");
    <var name>.setOnClick("javascript:window.open ('OA.jsp?OAFunc=<funcName>','new','height=550,width=850,status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no' );
    OABean is the bean on click of which the page should open like a hyperlink or sth like that.
    Hope this helps.

  • Print option in OAF Screen .

    Dear Friends ,
    I have OAF page developed with table layout region , now i would like to add a button in the same page .
    The main functionality of this button should be same as browser's " PRINT" ( Control +p) option  .
    How can i enable this button in OAF .
    Thanks in Advance ,
    Keerthi.k

    Keerthi,
    There is functionality in oaf for displaying a printable page.
    Create a button and set the URI by appeding OARF=printable to the url.
    OA.jsp?page=<CURRENT_PAGE>&retainAM=Y&OARF=printable.
    Note - Had ur previous issue been resolved.
    Regards,
    Gyan

  • SetTargetFrame for the printfunctionality throws error

    Hi,
    I have a button on my page for which i am trying to enable print functionality. Below is what i did.
    OAButtonBean buttonbean1 = (OAButtonBean)webBean.findIndexedChildRecursive("xxxprint");
    buttonbean1.setTargetFrame("_blank");
    buttonbean1.setDestination("OA.jsp?page=/xxx/oracle/apps/xxxhr/selfservice/positioncontrol/xxx/webui/xxxPositionPG&retainAM=Y&OARF=printable");
    When i run the page and click on the print button, i get "java.lang.NullPointerException" at the syntax
    buttonbean1.setTargetFrame("_blank");
    any clue why its happening like this?
    Thank you

    Hi,
    Always better to check bean exists or not?
    OAButtonBean buttonbean1 = (OAButtonBean)webBean.findIndexedChildRecursive("xxxprint");
    if (buttonbean1 != null) *// to resolve your issue*
    buttonbean1.setTargetFrame("_blank");
    buttonbean1.setDestination("OA.jsp?page=/xxx/oracle/apps/xxxhr/selfservice/positioncontrol/xxx/webui/xxxPositionPG&retainAM=Y&OARF=printable");
    The null pointer exception is raised because the Id with name "xxxprint" is not exist.
    Thanks,
    Kumar

  • How to achieve print functionality in OA Framework page

    Hi All,
    I have created one page in OA Framework.
    There is one print button on page for printing the page
    How to achieve print functionality thruoug Print button in OA page.
    Please help me in this if some one has use thif functionality before or if someone knows about it.
    Thanks
    Nisha

    Hi Nisha,
    Have u checked out "printable page" in OA Developer guide??
    Step 1: Add a page-level button as described in the Buttons (Action/Navigation) document.
    Step 2: Assuming your button label is the standard "Printable Page," apply the OA Framework attribute set /oracle/apps/fnd/attributesets/Buttons/PrintablePage.
    Step 3: Set the button's Destination URI property to point to the current page and set the UIX facet parameter (OARF) to printable as shown in the following example (if you don't know what a "facet" is, please see Controlling UIX Rendering Output for additional information). Remember to retain your application module.
    OA.jsp?page=<CURRENT_PAGE>&retainAM=Y&OARF=printable
    Step 4: Set the button's Target Frame property to _blank. This ensures that the printable page opens in a new window.
    Regards,
    Devang

Maybe you are looking for

  • Best practice for large form input data.

    I'm developing an HIE system with FLEX. I'm looking for a strategy, and management layout for pretty close to 20-30 TextInput/Combobox/Grid controls. What is the best way to present this in FLEX without a lot of cluter, and a given panel being way to

  • Setting the color of a node in JTree

    Hi all! I'm new to Java and facing a problem with JTrees. I'm using the following snippet to create a JTree : DeafultMutableTreeNode root = new DefaultMutableTeeNode("Letters"); DeafultMutableTreeNode parent1 = new DefaultMutableTeeNode("uppercase");

  • Could not complete this operation, an assertion has failed

    The massage appears, when I click Save for Web command. I have Photoshop CS3 Extended, Windows Vista. The same command in Illustrator works perfectly. I would appreciate any assistance on how to fix this headache. Reinstalling, pressing alt-ctr, goin

  • Query on handling else condition in Oracle Business Rules.

    Hi all. I am working on Jdeveloper 11.1.1.1.0 Business Rules. While creating rules... i am able to write if conditions around the facts and attributes and also replicate the same using decision tables and is able to derive the action. My Question is.

  • N8 has a higher SAR value compared with previous m...

    N8=1.02 N97=0.66 N96=0.82 N95=0.50