Page reload/refresh after printing Oracle report.

I have upgraded from version 3.0.1 to version 4.0.1 and I am having an issue.
I have a page with a tabular form (SQL Query - updateable report) which allows me
to select items I want to print.
The report looks like the following:
Name          Print
Template 1     Y/N
Template 2     Y/N
Template 3     Y/N
Template 4     Y/N
The print column is a static LOV with a 'Y' or 'N' option.When I submit the page, a MRU runs and sets a flag for each item I want to print in the database.
It then branches using "Branch to URL Identified by Item (Use Item Name)". The URL specifies an Oracle report
server and the oracle report to print.
All this works fine and the items that were selected, print out. An Oracle Reports Job Status is displayed
on screen (this originates from the oracle report server) to indicate that it has "successfully run" along with
an OK button. The OK button contains the following code: javascript:history.back()
A process also exists on the page ("On Load - Before Regions") that resets any flags that were set in the database
when the page is loaded and so the report will displays all N's in the Print column.
Now my problem is that in version 3.0.1 when I hit the OK button it would return to the page in the apex
application that branched to the oracle report and the page would be reloaded, where as in version 4.0.1
the page is not reloaded.
Any ideas how to fix this or can someone suggest a new way of achieving the same result.
Any help would be appreciated.
Regards,
Ryan

Hi Prabodh,
I have used Debug mode and I see 2 debug entries added.
The first is just displaying all the page defaults - (I think the page gets reloaded when you select debug from the developer menu)
The second is the SUBMIT request and it shows the initial value of the hidden item (ie null) and then where I changed its value (ie Y).
The problem is, it does not list an entry for the page when it returns from the Report Status page, so I have no way of knowing if anything is
changing its value. I even changed code to set the item to N instead of null and then to Y on submit. But when I return from the Status page
the value remains at N, even though if I check the Session State values it will say Y. The only conclusion I can come to is that it is using the
cached values and effectively just displaying the values set before I submit the page.
I have been playing around with iFrames and it seems to work the way I want.
I created a new Page (5), then a HTML region. Within the HTML region i have the following code
<table>
<tr>
  <td>
   <iframe src="&P1_URL." width="500" height="300"></iframe>
  </td>
</tr>
</table>I also create a button (Return) + branch and on submit will return to page 1.
From page 1, instead of branching to a URL, I now branch to page 5. This loads the Report Status page into my iFrame and indicates that it was
successful, but now instead of using the OK button within the status page I use the Return button that is part of the Apex application.
This way I no longer need the javascript or hidden items to try refresh the page , it will be done automagically once the return button is pressed.
I know it may not look great but it is the only solution I can get to work at the moment.
Thanks again for all your help, I really appreciated it.
Regards,
Ryan

Similar Messages

  • Can not able to print Oracle report on HP inkjet500 Plotter

    Dear All,
    Please let me know how to print oracle report on HP plotter.
    I tried with both Bitmape and Character mode report but report preview automatically exit from the menu immediately without any error when i click print button (to the destination HP Plotter). But i can print Excel file/ PDF file on Plotter.
    My report size is 36 inch width, when i convert into
    PDF it converts data for 11 inch width only remaining
    is not available.
    I am using the following version
    Oracle 8i Enterprise Edition Release 8.1.7.0.0
    Report Builder : 6.0.5.28.0
    Forms : 6.0.5.0.2 [32 Bit] Version
    Hope you will reply with best solution.
    Thanks.
    Regards
    Yoonus

    user11996936 wrote:
    Has anyone faced such an issue with Oracle Apps?Maybe. Maybe not. Ask to the proper forum. Here you are in Peoplesoft forum.
    Nicolas.

  • How Can I print Oracle Report 9i directly To Printer on the local network?

    Dear All;
    How Can I print Oracle Report 9i directly To Printer on the local network?
    or to any other computer ? or to my default printer without prevoiues know the printer name i mean found it in my connected printer?
    plear help me?
    Best Wishes

    1. Check documentation for DESNAME and DESTYPE
    2. See 1 as long as they are a shared resource
    3. Think you must know the name, but please check or documentation
    Regards,
    Martin
    PS. There's a Reports Forum here which would be a better option for posting this question

  • Printing Oracle Report.

    I have a problem printing an Oracle report on a dot matrix
    printer.
    I have the report set to print in character mode
    with the width and height of the report set to 132,31
    respectivley and the width and height of paper
    set to 7.25,11 each.
    The problem is:
    when I print my report it still prints on a whole A4 page.
    isn't it supposed to stop printing somewhere on half of the A4?
    I hope you can help me figure out the matter.
    Jaq84.

    Hi Prabodh,
    I have used Debug mode and I see 2 debug entries added.
    The first is just displaying all the page defaults - (I think the page gets reloaded when you select debug from the developer menu)
    The second is the SUBMIT request and it shows the initial value of the hidden item (ie null) and then where I changed its value (ie Y).
    The problem is, it does not list an entry for the page when it returns from the Report Status page, so I have no way of knowing if anything is
    changing its value. I even changed code to set the item to N instead of null and then to Y on submit. But when I return from the Status page
    the value remains at N, even though if I check the Session State values it will say Y. The only conclusion I can come to is that it is using the
    cached values and effectively just displaying the values set before I submit the page.
    I have been playing around with iFrames and it seems to work the way I want.
    I created a new Page (5), then a HTML region. Within the HTML region i have the following code
    <table>
    <tr>
      <td>
       <iframe src="&P1_URL." width="500" height="300"></iframe>
      </td>
    </tr>
    </table>I also create a button (Return) + branch and on submit will return to page 1.
    From page 1, instead of branching to a URL, I now branch to page 5. This loads the Report Status page into my iFrame and indicates that it was
    successful, but now instead of using the OK button within the status page I use the Return button that is part of the Apex application.
    This way I no longer need the javascript or hidden items to try refresh the page , it will be done automagically once the return button is pressed.
    I know it may not look great but it is the only solution I can get to work at the moment.
    Thanks again for all your help, I really appreciated it.
    Regards,
    Ryan

  • Page breaks in (html) printed apex report

    I am having a strange problem that appears to be related to APEX page template.
    I have a report that is html generated by a PL/SQL function. I need to have page breaks in the printed report at specific locations. I am adding this style to the html output of the function:
    <STYLE>
    DIV.pageBreak { page-break-before: always; }
    </STYLE>
    and I insert this at the locations I need breaks:
    < D I V CLASS="pageBreak"/>
    (without the spaces in DIV)
    (found this technique here: http://www.unagibay.com/DesktopDefault.aspx?tabindex=1&tabid=100&itemid=1821 )
    This works perfect when I run the report in IE, but FireFox is "ignoring" the page breaks. However, if I take just the output of the PL/SQL function in an html doc, FireFox works fine (breaks at the proper places). This makes me believe something related to the "page wrapper" content generated by APEX causes FireFox to not handle the breaks.
    I have tried copying and editing the Popup and Printer Friendly page templates, but I either remove too much and the page doesn't render, or the page breaks don't work.
    My questions for the APEX gurus are:
    1. Is there an "approved" way to get page breaks in the printed version of an APEX report, or is there a better way to do what I need to do.
    2. What is the minimum contents for a page template (what can I safely remove).
    Thanks,
    Bill

    Hi Owen,
    the page breaks are inserted before/after the section.  Expand the report structure window and make sure that the properties window is open below.  Once you click on the section part, you will see where you can insert the page breaks - the check boxes will appear in the properties.
    yes on the second part - just insert the page break between the data providers and then repeat the header for the data provider on the pages (also check boxes on the properties tab)
    Good luck

  • How do I get the page to refresh after a certain amount of time so it jumps back to beginning of one page site? Its for an exhibition

    Hi,
    I am in an exhibition space where I need to display my Muse website offline and locally on the desktop. I am looking for a way for the website to refresh after a certain amount of time so it can go back to the beginning of the page. Can someone help? Please!

    You can try the steps mentioned here :
    http://stackoverflow.com/questions/2787679/how-to-reload-page-every-5-second
    http://stackoverflow.com/questions/17886578/refresh-part-of-page-div
    http://crunchify.com/how-to-refresh-div-content-without-reloading-page-using-jquery-and-aj ax/
    Thanks,
    Sanjit

  • Question on Page reload/refresh

    How to reload/refresh the page after changing the value of an item.
    I have two items in one page. First one is VAR1 as date picker and second item is VAR2. The value of the VAR2 is going to populate based on the date value selected in VAR1.
    Example: If 07/13/2004 in VAR1 ; VAR2 is to be populated as 704.
    If I changed the value of VAR1, VAR2 is going to be re-calculated automatically
    Thanks in advance

    Yes, as the error message says, you need to define a same-page branch. When a page is submitted, after all the processing is done, branches are evaluated to determine which page to go to next. Click on the + next to Branches on the Page Definition screen to create a branch.

  • Get Windows message "Terminate 5-1" after printing pdf reports with Orarrp

    Hi,
    I get error message "Terminate 5-1" on clients machine after pdf report is printed with Orarrp.
    The clients is Windows XP with acrobat reader 5.
    I test on acrobat reader 6 and get the same result.
    This occur for all pdf reports and all clients.
    However this message just shows when perform printing, if I cancel printing from print dialog box then this message does not show.
    How can I avoid this message?
    Thanks in advance
    Tawatchai R.
    ===================
    Hi,
    I have same error message(Message Title: TerminateProcess Value; Message Body: 5-1) showing up when using Orarrp to print directly to printer on WEB using Oracle Forms. On my pc it shows when I have adobe acrobat reader opened up already and on others it may shows even if adobe acrobat is not already opened. However document gets printed but this is very annoying for the user to see this message.
    Client Environments:
    1. Windows XP, HP LaserJet 5P and HP LaserJet 4100 Series PCL, Adobe Acrobat 6.0
    2. Windows 2000 Professional, HP LaserJet 4000 Series PCL, Adobe Acrobat 5.0 and 6.0
    Thanks
    Kulwinder Sidhu

    Hi Kulwinder,
    We are getting this problem whenever we go through the following steps:
    - Generate a PDF report without an ORARRP file extension on a dedicated reports server. Preview the report by opening in Adobe Reader using WEB.SHOW_DOCUMENT.
    - Generate a PDF report with a ORARRP file extension of rrpa on a dedicated reports server. Directly print the report without a print dialog box using WEB.SHOW_DOCUMENT to invoke ORARRP.
    After printing the Terminate Process 5-1 message appears and Adobe is left running. If the first step is missed out then printing occurs without error and Adobe closes automatically.
    Please could you give more information on how you solved the problem. I am using Windows XP and Adobe 7.
    Thanks,
    Pete

  • Auto print Oracle report through call to PL/SQL

    I have been tasked with finding a way to generate an Oracle report from a java servlet. Basically they want to pass in parameters to a PL/SQL procedure and have it automatically print out, without user interaction.
    Can this be done?
    Jeff

    I am in a similar situation and have reached a bit of an impass. I am creating the report by means of passing a dynamically created URL from WebDB to the Report Server.
    I have created a procedure to do various things and was planning on calling the report via the procedure using
    OWA_UTIL.redirect_url depending on the params
    that the user entered. Does the UTL_HTTP work in the same means as the aforementioned? Or are they the same thing?
    Regards and thanks,
    Steve
    null

  • Print Oracle report into a network folder

    Hello,
    I was trying to print an Oracle report in PDF format to a network folder. I can do this directly from the url by pasting the url below on the browser, but when I try to do the same from a database trigger, I get "Rep 51002 bind to report server failed" error. I would appreciate any help that you can provide.
    Here is my code
    DECLARE
    req utl_http.req;
    resp utl_http.resp;
    value VARCHAR2(1024);
    BEGIN
    req := utl_http.begin_request('http://appserver.biosys.com/reports/rwservlet?server=rptserver&module=QueryIDResponse.rdf&userid=testuser/pwd@oracledb&destype=file&desformat=pdf&desname=c:/Query_Response_Report/245237new.pdf&P_QUERY_ID=123457&P_SERVICE_ID=6&P_SITE_ID=12501');
    utl_http.set_header(req, 'User-Agent', 'Mozilla/4.0');
    resp := utl_http.get_response(req);
    LOOP
    utl_http.read_line(resp, value, TRUE);
    dbms_output.put_line(value);
    END LOOP;
    utl_http.end_response(resp);
    EXCEPTION
    WHEN utl_http.end_of_body THEN
    utl_http.end_response(resp);
    END;
    Thanks
    Sani

    Thank you so much for your help. I used event driven pulishing and needed to install SRW package on my infra database and it is working good now.
    One thing I am struggling with sending pdf reports to another server. I could create a pdf at runtime, but needed to send to another server for storage. I could set up the desname parameter to store the pdf in the same report server by using the following code
    PORTAL.srw.add_parameter(myPlist, 'DESNAME', 'c:\Report\abcd');
    but to store in a different server I don't know how to do that. Any help would be appreciated
    Thanks

  • Windows 8 and IE 10 crashed after printing from Report Manager SQL server 2008 / 2008 R2

    We have a problem with Windows 8 in combination with IE 10 and printing reports.
    When we print a report from the Report Manager 'http://<servername>/reports' the browser crashed after a print.
    Sometimes before printing and somthimes after printing or when you close the browser.
    Al other operating systems like XP, Vista, Windows 7 with different IE versions have no problem.
    I tried the report manager from SQL Server 2008 and SQL Server 2008 R2.
    The same error occured when printing from our Internet application and the reportviewer.
    (ASP application written in Visual Studio 2010 and reportviewer version 10.)
    The event log shows two different messages.
    Faulting application name: IEXPLORE.EXE, version: 10.0.9200.16453, time stamp: 0x509b0dfb
    Faulting module name: ntdll.dll, version: 6.2.9200.16420, time stamp: 0x505aaa82
    Exception code: 0xc0000005
    Fault offset: 0x00061252
    Faulting process id: 0x780
    Faulting application start time: 0x01ce03a294f7d1d5
    Faulting application path: C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
    Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
    Report Id: d4a72486-6f96-11e2-be6e-10604b6a74ed
    Faulting package full name:
    Faulting package-relative application ID:
    Faulting application name: IEXPLORE.EXE, version: 10.0.9200.16384, time stamp: 0x50107ee0
    Faulting module name: rsclientprint.dll, version: 2009.100.1600.1, time stamp: 0x4bb67a74
    Exception code: 0xc0000005
    Fault offset: 0x00017e7a
    Faulting process id: 0x9c8
    Faulting application start time: 0x01ce02f35c70ab85
    Faulting application path: C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
    Faulting module path: C:\Windows\Downloaded Program Files\rsclientprint.dll
    Report Id: a13fccc6-6ee6-11e2-be67-10604b6a74ed
    Faulting package full name:
    Faulting package-relative application ID:
    Is there a fix for this problem?

    Dear Mike Yin,
    Thank you for your response. Your answer was the
    reason for finding the real problem.
    In december 2010 a SQL Server 2008 fix was the cause. I don't remember exactly the problem, but we changed the RSCLIENTPrint-x86.cab file. But instead to use the version of SQL Server 2008 we used the version of SQL Server 2008
    R2 (10.50.1600.1). This worked until
    Windows 8 (Internet Explorer crashed when printing).
    We fixed this problem by using the RSClientPrint-x86.cab file from SQL server 2008 (10.0.5500.0).
    But we now get the known problem that the
    activeX always must be installed again. 
    The reason for this is that the version of
    the SQL Server (10.0.5512.0) 
    and the rsclientprint.dll (10.0.5500.0) is different. SQL Server is newer (caused
    by a security patch (KB2716436)).
    Do you know when this problem will be resolved
    by Microsoft?
    Work arrounds
    I've also tried to install the RSClientprint.dll
    every time automatically (without user interaction).
    But this will be delayed the printing for more
    than 4 seconds. This
    is very annoying.
    Another workaround is to generate a PDF and print the PDF. But this is also
    a lot slower.
    Uninstall the security patch. but I don't know the security risk.

  • Dr watson error while printing Oracle reports 6.0.5.28.0

    Hi All:
    I am getting this problem when I was trying to print from the perview mode of Oracle Reports(6.0.5.28.0) on Windows NT Client machine. We are using Network printer which is on Windows 2000 Server. Can you hyelp me resolve this problem.

    The first thing you should do would be to get onto a supported version. We've done a lot of work in the printing area in the 6.0.8 (6i) release, particularly in the latest patch set.
    If this doesn't help then you should download the drivertest utility (http://otn.oracle.com/software/products/reports/files/printerdrivertest.zip) and follow the instructions to test the driver. Then work with support to get a bug filed.
    Regards,
    Danny

  • Status page before and after print jobs managed by Jetdirect.

    Hey Guys I am receiving an extra page before and after every print job.
    Printers are managed from Jetdirect Printer Installer for Unix Version E.10.34
    Server has Sun OS 5.10
    I have like 19 printers but only 5 HP CB516A are having this problem.
    The Print Message displayed is :
    Start: fpec4050-2729 Tue Nov 11 15:41:18 EST 2014
    End: fpec4050-2729 Tue Nov 11 15:41:18 EST 2014
    Its not a major issue but its a nuissance and wastes pages and ink
    Any assistance for a resolution to this would be helpful.
    Thanks.

    @deff 
    ‎Thank you for using HP Support Forum. I have brought your issue to the appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publicly post ( serial numbers and case details).
    If you are unfamiliar with the Forum's private messaging please click here to learn more.
    Thank you,
    Omar
    I Work for HP

  • Auto-print oracle report

    hi all...
    i created a batch file to auto-print an oracle report upon executing the batch file.
    the report is successfully printed upon clicking on the batch file or by executing it in ms-dos environment on the server but it is not printed out when i execute the batch file by calling it from a visual basic program, instead i encounter a report error, REP-3002(Error initializing a printer).
    please take note that the batch file is located in a windows 2000 server and a printer is already installed on the server.
    The batch file has the following code:-
    D:\ORACLE\DEV6i\BIN\RWRUN60.EXE REPORT=D:\SIMPLE\PROGRAMS\FWR_DISCREPANCY_LIST.REP USERID =WMS/WMS@ORCL p_ware_id=%1 p_arrival_no=%2 PARAMFORM =NO DESTYPE =PRINTER DESFORMAT=dflt TRACEFILE =C:\TRACE.LOG PRINTJOB =NO
    please help...
    i am not sure why it is not able to print out the report upon calling/executing the batch file from visual basic...

    I am in a similar situation and have reached a bit of an impass. I am creating the report by means of passing a dynamically created URL from WebDB to the Report Server.
    I have created a procedure to do various things and was planning on calling the report via the procedure using
    OWA_UTIL.redirect_url depending on the params
    that the user entered. Does the UTL_HTTP work in the same means as the aforementioned? Or are they the same thing?
    Regards and thanks,
    Steve
    null

  • L7680 Ejects Blank Page before and after print job

    My L7680 recently started to eject a blank page before and after a print job; seperator page option is NOT selected.  I tried all the suggested trouble shooting points in the HELP section but none have solved the issue. 
    This question was solved.
    View Solution.

    The setup button on the printer had a choice to return to all factory defaults - that solved the problem but it does take yoiu back to starting again to set other choices you may have made since starting toi use the devise.

Maybe you are looking for