JSF app - open report in new Window - via JSP?

I have been reading through this forum but no one has done quite what I am trying so I thought I'd post my own version of this problem.
The web app I'm working on is basically a report generator. Data is formatted via XSLT to .html files - that part works great. The problem is getting the app to open this new HTML file in a new window. I want to get this working with little or no JavaScript.
startReport.jsp (a JSF file) is the form that validates the user input. The sole h:commandButton (I do NOT want a link) works fine sending the form and JSF returns its errors or mine (if the criteria results in nothing) as it should; the action method returns "failure" so the page stays the same.
But when the action method returns "success" the JSF navigation-rule is setup to route to showReportFile.jsp (which is NOT a JSF file). This JSP is very simple:
<%@ page import="java.io.File" %>
<%@ page import="java.io.PrintWriter" %>
<%@ page import="java.io.FileReader" %>
<%@ page import="com.logipath.gict.cts.reporting.client.ReportClient" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<jsp:useBean id="reportClient" scope="session" class="com.logipath.gict.cts.reporting.client.ReportClient" />
<%
String fileName = reportClient.getReportOutputFile();
PrintWriter writer = response.getWriter();
char[] buffer = new char[1024];
FileReader reader = new FileReader(fileName);
int numRead = reader.read(buffer, 0, buffer.length);
while ( numRead != -1 ) {
     writer.write(buffer, 0, numRead);
     numRead = reader.read(buffer, 0, buffer.length);
reader.close();
writer.close();
File file = new File(fileName);
file.delete();
%>This works believe it or not. If I put the target="_blank" on the form tag in the startReport.jsp it even opens in a new window. Great. But with that attribute on the form element, if the page comes back in error - it shows up in a new window (as it is apt to do given the attiribute).
Ok, the h:commandButton tag's target attribute is ignored. Fine. There has to be a way to do this but I just cannot figure it out and I'm no JSP expert.
What I think will work is this. Since my report beans create HTML files, I've created a session bean called "currentReportBean" which holds a single attribute - the name of the HTML file to display. (This is how the JSP above works.)
What I need to know now *(this is the question part)* is how can I flush the render response of my JSF life cycle, trigger the opening of this JSP in a new window, the restart the JSF life cycle at the begining so the "parent" page repaints normally? The JSP isn't part of the JSF page flow so I there's no "going back" or "refresh" to worry about. I would like to take the showReportFile.jsp file out of the navigation files altogether.
I know this topic has been worked on at length, but not quite this way. Any help is greatly appreciated.

arnieAustin wrote:
No, the JSP resets the bean value after showing the file.My mistake; it wasn't the reload scenario that is an issue. It is when the user goes back and forth in history that this can be a problem.
>
But now I'm confused. JS cannot access server-based session values. How is it going to know to open the page? A cookie?Write the value to a JS variable when you render the page.

Similar Messages

  • Transfer_State (open report in new window) with a PreQuery

    Hi
    As part of the standard template that we deliver to end users, one of the buttons in the toolbar is a button that allows the user to open the report in a new window. This means they can view the report without all the additional information that portal adds, which is quite useful for large reports.
    However, what I have found is one of our templates is not opening correctly, as the variable selection screen appears when the report is transferred to the new window (using TRANSFER_STATE command). For all the other templates, the filter values are remembered, so whatever values were entered on the selection screen, and whatever navigation was performed is transferred to the new window.
    The only difference I can see between the templates that work and the one that doesn't, is that the "error" one has a query which in turn has a pre-query.
    Is this a SAP bug, or standard behaviour, or something that we can get around?
    Cheers,
    Andrew

    Hi Andrew,
    We too had this issue when using transfer state.  All filter values where we used an exit would reset.  SAP said this was standard behaviour.  We ended up having to re-design and create all out templates!
    Cheers,
    Nick.

  • Apps open in a new window/space.. how do I turn this off so all windows open in "desktop"?

    Whenever I open an app it creates a new space to open the app in. All apps do this, and you can see the windows/spaces by hitting F3; the icons are lined up at the top of the screen. How do I disable this feature so all windows and apps open in the "desktop" space?

    OS X Yosemite: Work in multiple spaces

  • 2004s - Opening Report in New Window

    Hi there
    One of the buttons on our toolbar is a button to open the report in a new window. This provides functionality to allow the user to open the report without all the menus that EP adds on.
    It should be really simple, all I need to do is add
    target="_NEW"
    into the anchor tag, but in practice this doesn't seem to work.
    At the moment I have an HTML table, and an image in one of the cells. I then insert a hyperlink and go through the command wizard to generate the BW specific tags to transfer the state of the template. In the HTML view, I move the
    <img>
    tag into the
    <a>
    tag, so that the image is clickable.
    However, if I put the target in the
    <a>
    tag, so you would have
    <a target="_NEW">
    and then the
    <bi:attribute name="href">...
    , all that happens is that a new window opens, with the URL of the command that is supposed to be executed, but the command is never executed.
    Does anyone know how I can introduce a "target" window into the hyperlink?
    Cheers,
    Andrew

    Hi
    _BLANK appears to be the correct value to use, but the problem I get is that all that happens is a new window opens, and the BI command that is supposed to be executed is then in the address bar ... not the resulting URL.
    If I look in the API documentation, there is supposed to be a parameter TARGET_WINDOW on the link item, but when I insert a link item into my template, there is no such parameter that I can set ... not sure how to set it manually either
    Cheers,
    Andrew

  • Open iView in New Window via Link

    Hi,
    I have created a link that opens an iView within a role:
    <b>http://server:port/irj/portal?NavigationTarget=....</b>
    Although, I have set the the iView parameter to <b>Open in Separate Window</b>, it is displayed within the portal content area. How can I achieve that the iView is opened in a separate window?
    Thanks.
    /Elvez

    Hi Elvez,
    So you want the user pressing the link, a new browser window opens with the portal, and from that, an additional window opens with the iView?! Hm, if it makes sense for you...
    No, EPCM calls of course don't work within an eMail. And the solution you have implemented is the one to go, whether implemented as KM doc or as an iView rendering the JS.
    Hope it helps
    Detlev

  • Opening Report in New Window

    Hello,
    I have a form based on a procedure that calls a dynamic page that has two bind varibales. The code for the procedure is as follows:
    procedure call_biweekly(
    startdate IN date DEFAULT NULL,
    enddate IN date DEFAULT NULL)
    as
    begin
    biweekly.show(p_arg_names => portal30.wwv_standard_util.string_to_table('startdate:enddate'),
    p_arg_values => portal30.wwv_standard_util.string_to_table(startdate||':'||enddate));
    exception
    when others then
    null;
    end;
    Does anyone know how I could get the dynamic page "biweekly.show" to appear in a new window?
    Thanks,
    Martin

    Instead of calling biweekly.show in the procedure, do something like this:
    wwv_redirect.url(p_url =>
    'http://host:port/pls/portal30/portal30.biweekly.show?p_arg_names=startdate&p_arg_values='||startdate||
    '&p_arg_names=enddate&p_arg_values='||enddate);

  • Open Sub Report in New Window

    Hi,
    We have an application which is integrated with crystal reports.
    So when you open a report from the application it opens up in a new window. (Ours is a web based application and crystal reports opens up in IE browser)
    We have some reports which have subreports (on demand ), is there any crystal report configuration through which these subreports can be opened in a new window, as of now they open in the same main report window.
    Thanks in advance

    hello,
    you may wish to look into saving the subreport as a separate report and then:
    1) calling the report via opendocument (if your app sits on top of businessobjects enterprise or crystal reports server)
    2) calling the report via URL reporting if your app does not utilize the above platforms
    i can't guarantee the above will work as it may depend on your environment that you are hosting the reports in.
    see the help guide [here |http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf]for more information on linking
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf
    as per using a subreport and opening in a new window, this doesn't really work.
    if you want though, you can use a Report Part link to go from the open subreport back to the main report. please see more on Report Part linking in your crystal report's online help.
    jw

  • How to open Jasper report in New window (new Browser,new Tab)

    Hi,
    I'm Using oracle jdeveloper 11.1.1.4.0 fusion middleware for Jasper report. i want to open the Jasper report in new window
    In Application On click of CommandMenuItem(ExportToHTML)it opens the New Window,.While opnening this window i want to call a method (This method opens the jasper report in current browser)
    I Tried the afterPhase and beforePhase for this but doesnt work for me.while executing this using beforePhase I'm getting following Exception :
    Pls Help on this.Thanks in Advance......!!
    Java.lang.IllegalStateException: strict servlet API: cannot call getOutputStream() after getWriter()
    at weblogic.servlet.internal.ServletResponseImpl.getOutputStream(ServletResponseImpl.java:280)
    at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:112)
    at ReportsDisplayBean.exportHtmlReport(ReportsDisplayBean.java:272)Is any other way to do this ? :(
    Thanks.

    Hi,
    The view itself is a Web Part called an XSLT List View Web Part (XLV for short). This Web Part is stored on an ASPX page that is by default associated with a list or library on your site.
    I suggest you can check if the view page is valid, also, you can try to create another view, then redirect to the view page to see if there is xslt in the page.
    Here are some detailed articels for your reference:
    Create a custom list view using SharePoint Designer
    Using SharePoint Designer 2010 to Work with Web Parts
    How to: Customize the Rendering of a Field on a List View
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Report link that will open to a new window

    Hi,
    I need a report link that will open to a new window. Below is my code.
    {="<ahref=\"http://<server>:<port>/OpenDocument/opendoc/openDocument.jsp?sRefresh=Y&sPath
    ParentFolder,subfolder&sDocname=<Report Name>=wid"\">"[ID]+"</a>"}
    Thank you.
    Rose

    Add the parameter sWindow=new to your URL
    ...openDocument.jsp?sDocname=SalesReport&sWindow=new
    OpenDocument Documentation:
    XI 3:
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf
    R2:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/800f7400-bf3e-2b10-fa81-c6c74f457ab4

  • Open "Navigate" enabled report in new window - OBI10g.

    Hello Experts,
    May be its novice user question, i have 2 reports, source and target reports. Both reports are connected using "Navigate" functionality.
    Issue is, i wan to open the target report in new window? is that possible?
    using GO URL: we have an option like target='_blank'. but in navigate.. what is the option?
    Thanks in advance....
    Regards,
    Kiran

    The Navigate feature can be modified to open targets in a new window by following the below steps:
    - Edit OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\b_mozilla\viewhelper.js
    - Search for function NavigateInfo()
    - Find the line with code this.sWindowTarget = "_self";
    - Replace the line as this.sWindowTarget = "_blank";
    - Clear the browser cache and reload the page.
    The navigation targets will now open in a new window.

  • ADF 11G: opening PDF into new Window using Jasper Report

    Hello, I am using JDev 11.1.1.5.0
    I have a page into a bound Task FLow containing a table and a "print "button".
    I am using Jasper Report to create a PDF document.
    I want this document to be opened into a new Window when the user click on the button.
    I've been reading several threads/blogs to do this but it is not working.
    please help me out with the sample or some link where I can refer.
    Thanks
    Sanjeev

    Hi All,
    Today I checked and got the Reason why Server is getting shut down while closing the Report window.... this is just because of JasperViewer.
    so while opening the JasperViewer to show the Report we need to pass the second parameter as False.
    JasperViewer.viewReport(jasperPrint,false);k thanks for your update....
    but still my actual problem exist....
    I don't want to use JasperViewer to view the Report.
    Like when I'm clicking on Button PDF Report is opening in the same Winodw.
                    response.setHeader("Content-Disposition",
                                       "inline; filename=\"ReportFile.pdf\"");it will open as attachment if I'll use the below code and my ShowReport Button is getting disabled....
                    response.setHeader("Content-Disposition",
                                       "attachement; filename=\"ReportFile.pdf\"");As in Page ShowReport Button is getting disabled so after exporting the Report I want to redirect to the page but getting Error like Illegal State Exception: Response Already Commiteed
    Error Log:
    java.lang.IllegalStateException: Response already committed
         at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1608)
         at weblogic.servlet.internal.ServletResponseImpl.sendRedirect(ServletResponseImpl.java:834)
         at javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:136)
         at view.org.webcenter.sample.view.servlet.JasperServlet.doPost(JasperServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
         at org.webcenter.sample.view.bean.JasperReport.callServlet(JasperReport.java:46)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:788)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:306)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)please help me out with the sample or some link where I can refer, its very important.
    Thanks
    Sanjeev
    Edited by: Sanjeev on Jun 5, 2013 10:50 PM

  • Need to open click through SSRS report in new window

    Hello :)
    I have a click through report and the requirement that I have is that I should be able to open it in a new window. The report has lot of parameters and I tried to use this query but it gives me error that parameter is missing
    ="javascript:void(window.open('http://reportservername/Reports/Pages/Report.aspx?ItemPath=%Reports%&rs:Command=Render &Parameter1="+Parameters!Parameter1.Value+"&Parameter2=" + Parameters!Parameter2.Value +
    "&Parameter3=" + Parameters!Parameter3.Value+"'))"
    It does open the report in new window, however it says that parameter is missing.....(few parameters are dates and few strings). Please any help would be very appreciated.
    Thanks!!!
    Malini

    Hi,
    You need to use the URL of report server rather than report manager. Modify the URL like:
    ="javascript:void(window.open('http://servername/ReportServer/Pages/ReportViewer.aspx?%2ffolder_name%2fdrillthrough_report_name&rs:Command=Render
    Reference:
    http://msdn.microsoft.com/en-us/library/ms155391.aspx
    http://msprojectnow.com/Blog/tabid/142/entryid/367/SQL-Reporting-Services-2008-R2-Using-URLs-to-call-reports-with-single-and-Multi-value-parameters-HTML-and-Report-Viewer-applicable.aspx
    Hope it helps.
    Tracy Cai
    TechNet Community Support

  • PCUI - open New Window via Button (to call custom URL / HTML viewer)

    Hello group,
    I have followed the "Use CRM PCUI HTML viewer to call a custom URL" in order to create a custom URL to BW web template.
    However, instead of displaying the URL in a tab (this works fine), I want a Button in the Accounts view to open up a New Window displaying the URL there.
    Here is what I have done:
    Create Field Group & Structure
    Create Event
    - Usage: Layout-Relevant
    - Text: Web template call
    Added Event to Toolbar Group ACC_OIC
    Define Application Layout (CRMM_ACCOUNT) for Event
    - Position: New Window
    - Screen Element Type: HTML
    - my field group
    - my structure
    Define Application Set (COMM_BUPA)
    - my structure
    - my access class
    The button is there, when clicked the read-method of my access class is executed, but no New Window is opened with the URL displayed.
    Is there something I am missing? Can the HTML viewer not called in a new window?!
    I appreciate any input you can provide me.
    Thanks and regards,
    Erik

    I have the same problem. PCUI toolbar button open url http://www.google.com in new window   .
    It sames so easy open a link on web page.
    why so hard in PCUI !
    My god , who design the PCUI.
    anyone solve this problem , let me know please. Thanks!
    [email protected]

  • Opening a new window via Flash

    HI everyone
    To reuse some code, I have made an application using HTML
    that incorporates a flash. The flash, however, contains a link that
    does not open a new window when it's suppose to in adobe air. The
    link opens in a new window when running it in a web browser.
    Why is this the case? Do i have to call another function in
    flash when it's being executed in Adobe Air?

    How are you trying to open the new window? navigateToURL will
    always open in a browser...

  • Oracle Report in New window with submit

    Hello, I'm in urgent need of an example on how submit a page and open a Oracle Report in a new window. I've searched the forum and found similiar threads, but not exactly what I need. Basically, I have an html page with cascading LOVs in which the user can cascade down until they get to the report (oracle report) they will like to generate. I'm using Patrick's ApexLib for my cascading LOVs. The user can also pick a date range via a Date Picker. I need the page to submit so that paramters from the LOVs and Date Picker can be passed to the Oracle Report. The Oracle Report needs to open in a new window. Currently I'm using a button item using a branch which runs the report fine, but it comes up in the same page. Can someone point me in the right direction as to how to accomplish this? Thanks in advance for your help!
    Lou

    Hi Lou,
    you don't have to submit the page. If you have all the values on your page in HTML input fields you are fine. You would only submit it if you want to do some additional processing on the server to calculate values, ...
    So just create a button with "Redirect URL without submitting page",
    set "Target is a" to "URL" and use the following code in the "URL Target" property.
    javascript:popupURL('http://your_oracle_report_url/regionid='+$x('P4_REGION_ID').value+'city='+$x('P4_CITY').value);The $x('some_page_item').value is used in JavaScript to reference the current value of an HTML field. Use the same identifier as you have used for your item in APEX.
    Hope that helps
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

Maybe you are looking for