Printable page

I've in my application the next button:
<contents>
<button text="Imprimir pantalla" targetFrame="_blank" destination="${ctrl:eventUrl(uix, 'printMe')}" />
</contents>
<handler>
<event name="printMe">
<showFacet name="printable"/>
</event>
</handlers>
The problem whit the button is I cant open the printable page in a new window, I obtain an javascript error: _blank is not defined.
Other question: If I'd open the printable page in a new window, how can I do to include in that new page an href with de javascript window.print.
thanks

Hi,
When you add a paramter the life will be uptill the end of the request.
Try setting the item number value as a part if TransactionValue or SessionValue.
The OAPageContext javadoc contains the description for the getter and setter methoods of the above.
Thanks.

Similar Messages

  • Is that possible to display the user selection data in the printable page?

    Hi All,
    I'm going to add a printablepage button on my page.
    Here comes a questions.
    Is that possible to display the user selection data in the printable page?
    For example,
    I have a table in the page,with 10 records.User select 5 of them.Can I display these 5 records in the printable page?
    Please help.

    Hi Yannick,
    Thanks a lot for the information. It worked.
    The portlet data can be accessible using bindings, but parameter name can be different.
    Meanwhile I have got one more scenario, where the Portlet and Task Flow placed in different pages of WCP Application. On change of data in the Portlet the application should navigate to another page where the Task Flow placed and displays selected data.
    Basically I can not use any button for navigation. The navigation should happen once I do some action in Portlet.
    Is this possible? If yes can you please let me know the steps?
    Thanks in advance!
    Somnath
    Edited by: Somnath Basak on Dec 20, 2011 9:41 AM

  • How to create  Printable page in OAF using Jdev10g

    Hi,
    I tried to create a printable page in OAF using the following steps given in devguide of OAF
    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_
    *my current page path is *_
    OA.jsp?page=abhi.oracle.apps.ak.employee.webui.AdbPG&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.
    but after doing this i am getting below exception.
    Exception Details._
    oracle.apps.fnd.framework.OAException: The application id or shortname () you entered does not exist._
    i am new to OAF..
    can anybody guide me , how this exception can be corrected?

    Hi,
    sorry, wrong forum. This is all about Oracle JDeveloper. OAF related questions are handled on the OAF forum
    Frank

  • Printable Page behaviour

    Hi all,
    I have table which has 15+ number of columns and each column has width of more than 90px. When i am using printable page behaviour the printable page is showing all the columns of table but when i am extracting a hard copy out of it, i am not getting all the columns. Can there be a way through(programming) where i can define what should be the font size of printable page, so that i can have all columns on my hard copy.
    I also tried printinh hard copy with landscape mode but its not catering all the columns.

    User,
    please always tell us which JDev version you are using as the solution might depend on it.
    I'm not sure I understand your requirement fully. A hard copy is a screen shoe, so you get what you see. If the printable page behavior doesn't get the output you want, you can always use a more sophisticated report solution which give you all the control on the output you want.
    However, here are some links which might help you get started on how to change the output of the printable page behavior:
    https://blogs.oracle.com/jdevotnharvest/entry/how_to_hide_or_show and
    http://jobinesh.blogspot.de/2011/07/tips-on-using-showprintablepagebehavior.html
    Both are using the same technique.
    Timo

  • Printable page issue..

    Dear All,
    In one of our requirement i a getting error while "Printing" the page.The requirement is like below:
    In the first page we are displaying no of items list as per user selection.When user clicks on the item number we will take them to another page which has Item details.
    So in the first page link we are sending ItemNumber in the destination URI.In the second page we will do query by getting parameter Item Number.
    My problem is in the second page there is "Print" button.When i click Print it will throw exception since there is no Item Number.
    Can anyone help me how can i pass dynamically Item Number to the Printable page.
    I tried adding ItemNumber={@ItemNum} in the destination URI of the page.But the value is null :-(
    Any help.......................

    Hi,
    When you add a paramter the life will be uptill the end of the request.
    Try setting the item number value as a part if TransactionValue or SessionValue.
    The OAPageContext javadoc contains the description for the getter and setter methoods of the above.
    Thanks.

  • Printable Page - Changes to VO not reflected

    I have printable page defined on a page and when clicked, it displays the contents of the page correctly.
    I have a messagechoice in the main page. When i change the value in the drop down and click "printable page" button, it still shows the old data.
    Is there any way that the printable page picks the latest data and shows it? Any inputs are appreciated.
    Thanks.

    I would say that it is the standard behavior. The data is not yet committed.
    Further if you have noticed, the general standard is to provide the printable page button on a final submitted screen where there are no pending changes. Will suggest to rather change your design approach.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Printable Page as .pdf

    Hi,
    Is there any way I can save a "Printable Page", which is in .htm format into .pdf format?
    Thank you.

    No such out of box functionality from OAF. You will have to put your custom code to do that.
    --Shiv                                                                                                                                                                                                           

  • UIX question: Open printable page in a new window

    I am using 10.1.2 version of JDeveloper with UIX/ADF.
    In one of the UIX pages, I am using a submit button to fire an event named printMe to open the uix page in a printable format.
    <event name="printMe">
          <showFacet name="printable"/>
        </event>But, understandably this takes out all the links in the page and the only way to go back to the original page is to use the back button (which users might find unintuitive). I was wondering if there is a way to make the printable page to open in a new window?
    I don't think using the destination or onClick attributes of the submitButton with the javascript:openWindow() function would achieve this. Because this still loads the page in a 'printable' format in the same window and opens a new window in the 'non-printable' format.
    I would like to know, if there is a way to direct the printable facet to open in a new window leaving the original page as-is, so the users can print, close the new window and resume using the application.
    Or is there a better way to handle this, as I am open to ideas if there is a better way to address this usability issue.
    Thanks in advance,
    Karthik

    Dear Sir...
    assume that in order to view the report in the page, you should change the where clause of a view object for example (this is dependent on how and what settings you want to make for the page. it does not have to be like this, it is dependent on how you prepare data, perhaps you do not have to prepare anything at all, i do not know what code you have).
    So, assume that in order to view the print report, your code was something like this:
    public void onViewReport(DataActionContext ctx)
    ViewObject V=GetView(); //
    V.setWhereClause("myfiled=123"); //
    V.executeQuery(); // these steps used for preparing data
    ctx.setActionForward("printpageforward"); // go to print page
    Now you remove this code , go to the print page, and override the print page prepareModel method with something like this:
    protected void prepareModel(DataActionContext actionContext) throws Exception
    super.prepareModel(actionContext);
    ViewObject V=GetView();
    V.setWhereClause("myfiled=123");
    V.executeQuery();
    Now you add the script to your button to show the print page in a new window, and that is it. your print page should work fine.
    best regards

  • Printable page not working

    Hi All,
    When i click on the pdf icon , in the preview printable page section of a worksheet it says "page not displayed" any ideas.
    Thanks

    Hi,
    check if below link helps
    Printable Page issues
    and if u want to ignore/stop getting this message, below link helps.
    http://answers.yahoo.com/question/index?qid=20080305205645AAt2FLS
    regards,
    Rajan

  • Printable page in adf

    Hey,
    I have the "printable page" feature added to an adf table.
    After clicking on the "printable page" the first time, it opens the printable page ok.
    Then the user closes the printable page.
    Now the user clicks the printable page again. Nothing happens. It does not open the printable page.
    This is strange.
    Does anyone know why?
    Thanks

    Can you double check if you are following everything documented here ... I know its straightfwd though.
    http://download.oracle.com/docs/cd/E16764_01/web.1111/b31973/ad_output.htm#CHDIDBAB

  • "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

  • Printable Page Displays Wrong Calendar

    Has anyone else seen this problem? When I'm in my calendar (week view) via UWC and I click on Printable it sometimes brings up a new window with someone elses calendar details. If I close the printable page and then go back to mail and back into calendar and try again I get my own calendar in the printable page.
    Some of my users seem to be affected more than others....

    Hello again, Vikas,
    You were so helpful the last time I wondered if you would help me with another problem.
    Below are three photos. Photo #1 is the page as I designed it and as it appears in 'Design'.
    Photo #2 is how #1 looks in 'Preview'. Note the text is the same but the image is different.
    Photo #3 is later on in the series. It's as if 'Preview' for photo #1 stole the image from photo #3.
    Do you know what happened?
    The photo below is the page in 'Design'
    The photo below is in Preview. Note that the text is right but the photo is very different:
    The photo below is a few pages later; below it is with its correct text:
    In preview mode the page immediately above is correct.
    If you wish to see the pages, they are as follows:
    Photo #1 which is in my Design mode doesn't appear on the published site.
    Photo #2: http://www.gayannrogers.com/ruth-hubert.html
    Photo #3: http://www.gayannrogers.com/beth-richards.html
    Thank you for your help.

  • Printable page table rows incorrect on showPrintablePageBehavior

    I'm using 11.1.1.3.
    My page has a table that shows rows returned from the database. I also have a command button with a showPrintablePageBehavior tag.
    The table fetchSize and autoHeightRows are set to the rangeSize. Let's say the result set is 100 rows and the table displays 10 rows at a time. If I click the printable button and don't scroll the table the printable page displays fine. As I scroll down the table fetches the next batch of 10 rows.
    When I then click the printable button the rows that are displayed are different that what was on the original page. It shows the first 10 rows and the the row count indicates rows 1-20.
    No matter what row I scroll to, the printable page goes to the beginning of the Iterator's cached rows. The VO Access Mode is set to Scrollable. No other modes seem to work.
    The issue happens even on the demo apps that go to the HR database.
    I've spent considerable time researching this to no avail. That's why I'm finally asking the forum.
    Any guidance would be appreciated. Thanks.

    Sorry, another thought...
    Basically I want the user to be able to print what they see. If the user scrolls down to row 43 I need the printable page to actually show rows 43 -53 and indicate that they are seeing "Rows 43-53 of 100". That doesn't seem to ever happen UNLESS the user has not scrolled at all.
    I know that the user could just click the browser Print button on the original page. However, with panel splitters, flash dvt graphs and other buttons on the page it really doesn't look right.
    Thanks again!

  • Printable page and showPrintablePageBehavior

    Hi,
    I have a page that has a short table. I added a command button to preview this page to be eventually sent to the printer by using showPrintablePageBehavior
    The issue is that I would like to control how the page appears in preview/printable format. In particular, I would like to control stretching of columns of tables and possibly pagination. If i can make the printable page appear as it appears in query/insert mode, that would be fine.
    The interesting thing is that controls used to control stretching columns etc. (e.g. last column stretch) do not seem to apply to the page in showPrintablePageBehavior printable mode.
    I was wondering if there were certain things i can do. I have already read 33.2 Displaying a Page for Print at http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/ad_output.htm#CHDIDBAB and researched this topic.
    Thanks in advance.

    Make a PDF.
    http://www.onjava.com/pub/a/onjava/2003/06/18/dynamic_files.html
    -S

  • Printable Page - Corporate Branding

    Hi
    The corporate branding image disappears on Printable Page. The requirement is to print the branding image also.
    Thanks
    Gautam

    Is it a custom page or a seeded page? Have you done any modifications. Please provide enough details with your issues.
    --Shiv                                                                                                                                                                                                                                                                   

Maybe you are looking for