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/

Similar Messages

  • Open oracle report in new window from method

    Hi,
    I have a requirement to do some stuff in the view object, save changes, launch an oracle report 10g in a new window, and then navigate to a new page on a SINGLE button press.
    I can get all this done using a command button to call may backing bean and a goButton to launch my report, but need to combine these into a single button.
    My question is, is there any way to launch my new window and report from the backing bean?
    Or is there some other way to accomplish these requirements?
    this is a JSF/BC app, jdev 10.1.3.3
    Thanks,
    Jim

    What if I have to do validation against the inputs that are used to dynamically generate the report url in the backing bean when clicking the "Button". I couldn't see there is a way for <af:goButton> to implement that. I think there should be some kind of action or listener in the backing where I can do the validation before I decide to open the new window for report.
    I searched the forum and there is a post that will use a form to open the report window using target="_blank" in the form's attribute, but that works only if we don't have to validate the inputs.
    I also tried to find a solution that will open a new windows in the backing bean by invoking a javascript, that javascript function will have the report url generated in the backing bean as the parameter. But so far, I couldn't find one with my ADF version 10.1.3.2.0. It looks like that in ADF 11, this approach might be feasible.
    Any idea, hints?

  • Display Oracle Report on new window

    Hi,
    How can I display Oracle report from HTML DB on a new browser window? I have branch to this report. Thanks much for your help.
    Lakshmi

    Search this forum for "new window". You should find it. Try:
    checkbox and report page in new window

  • How to run Oracle Report in new window

    Hi,
    There appear to be many threads regarding this issue, but so far I've been unable to piece together a solution to my problem.
    My requirements are quite simple really.
    - Invoke an Oracle Report from an HTMLDB page
    - Pass parameters form the page to the report URL
    - Run the report in a new window
    I have created a simple example at:
    http://htmldb.oracle.com/pls/otn/f?p=36506:1
    Page 1 contains the following HTML Header attribute
    <script language="JavaScript" type="text/javascript">
    function callMyPopup (url){
    w = open(url,"winLov","");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>
    The URL i wish to invoke is
    http://myappserver/reports/rwservlet?test/test@test+report=test.rdf+&P1_PARAMETER.
    My question is, where would I put the code to invoke the URL? I'm trying to use the following code
    javascript:callMyPopup('http://myappserver/reports/rwservlet?test/test@test+report=test.rdf+&P1_PARAMETER.');
    I've tried putting this in a branch but I get a 'Page can not be displayed' error.
    Any help would be appreciated.
    Thanks
    Andrew

    Hi,
    I'm trying to invoke an oracle report through a button in apex2.2. Please let me know how to display the report in a new window.
    I have put the URL as of now in the branch of the button, and the report is getting displayed in the same window.
    I've read some of the posts and put the URL as the target of the button instead of a branch and also used the javascript:popupURL(), but it still doesnt work for me. The URL works fine without the javascript.
    I have put the URL as of now in the branch of the button, and the report is getting displayed in the same window.
    Thanks in advance,
    Priyanka

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

  • 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

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

  • Opening OA page in new window with parameters

    Hi all,
    Hi need to open a new page in a new window with some parameters to be passed to that page.
    Here is the code i have written.
    But i am not sure how to pass parameter in java script string
    String userid = new Integer(pageContext.getUserId()).toString();
    OAButtonBean go = (OAButtonBean) webBean.findChildRecursive("go");
    String url1 = "javascript:openWindow(top,'OA.jsp?page=/aos/oracle/apps/per/payslip/webui/AGSBPaySlipPG&userid={@userid}, null, {width:750, height:550},false, null, null);void(0);";
    go.setDestination(url1);
    Thanks,
    Devang

    hi mani,
    I didn't got wat u meant by binding the attribute.
    I tried another way.
    I had a OAButtonBean GO
    I have 2 messagechoices one for month and another for year
    So in page A in month it shows Jan in starting (till Dec) and in year it shows 2006 as per the picklist view attribute. Also I have attached the VO and view attribute for both the messagechoices.
    Now in the setDestination of the GO button i have url of my pageB with retainAM=Y and target frame as _blank.
    So i select "Oct" from messageChoice and year as 2006 and click GO but still when it goes to pageB and when i try System.out.println(<the view object attribute value>)
    i get "Jan" instead of "Oct". Below is the code in pageB i am using to get the value of the month from VO
    MonthVOImpl monthVO = (MonthVOImpl)pslip.getMonthVO();
    //pslip is AM object
    RowSetIterator monthrowsetiterator = monthVO.findRowSetIterator("monthvo");
    if (monthrowsetiterator == null)
    monthrowsetiterator = monthVO.createRowSetIterator("monthvo");
    // monthrowsetiterator.reset(); I NEED TO COMMENT THIS OUT - RIGHT ??
    MonthVORowImpl monthrow = (MonthVORowImpl)monthrowsetiterator.next();
    String month = monthrow.getMonth().toString();
    System.out.println(month);
    So how do i resolve this issue. I thought that retaining the AM will take care of the value which i am selecting in the messagechoice in pageA.
    Any ideaz??
    Thanks,
    Devang

  • Starting Oracle Reports 11g in Windows 7

    Hi there,
    Does anyone have any luck running Oracle Reports 11g in Windows 7?
    I installed WLS server (10.3.2) successfully.
    I installed OFM (11.1.1.2) successfully.
    Started Oracle Forms 11g successfully. Able to connect to Oracle database and created a form.
    Registry: /SOFTWARE/ORACLE/KEY_OH2004471243: ORACLE_HOME=C:\Oracle\OFM11g\as_1
    System variables: PATH=C:\Oracle\OFM11g\as_1\jdk\bin;C:\Oracle\OFM11g\as_1\jdk\jre\bin;C:\Oracle\OFM11g\as_1\bin;%PATH%
    tnsnames.ora is in C:\oracle\TNSAdmin\
    Error starting Oracle Reports 11g
    C:\oracle\OFM11g\asinst_1\config\reports\bin\rwbuilder.bat
    java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XMLParseException
    rwbuilder.bat file:
    @REM
    @REM Copyright (c) 1999, 2008, Oracle and/or its affiliates.
    @REM All rights reserved.
    @REM
    @echo off
    @echo Starting Reports 11g Builder...
    setlocal
    call C:\oracle\OFM11g\asinst_1\config\reports\bin\reports.bat
    @echo on
    start C:\oracle\OFM11g\as_1\bin\rwbuilder.exe %*
    @echo off
    endlocal
    @echo on

    Problem fixed. It was a folder security with Windows 7. When setting folder security on the root folder, it did not cascade to all the subfolders, even checked off the "Replace all child object permissions with inheritable permissions from this object". After searching many folders, the "oracle_common" folder was access is denied. Granted permission to this folder, and able to start Oracle Reports with no errors (without to run as Admin).

  • 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

  • Links that open a new window with javascript:void(null); do not work in 3.1

    I've been noticing that any site I go to that opens content in a new window with "javascript:void(null);" will be ignored by Safari 3.1. The links work in Firefox and used to work in Safari as well. Any suggestions?

    General rule of thumb in the Mac universe...
    When Safari is updated most if not all third party add-ons break. That's because most don't play by the rules. The developer thinks they know how to do it better than Apple so they just do it their way. So the first rule of survival is to KNOW what you have installed on your machine at all times. Use something like textedit to create a document listing all of the third party stuff you have installed and religiously update the list. Second rule is to wait a few days before applying an update. Third rule is to visit your third party developers' sites and make sure their little gadget is compatible with the new Safari update.
    Being aware of things will make life much easier for you in the long run.

  • I can't get download to work - it will not copy the mp3 file to my chosen location (as set in tools/options) - it gives me a new window with a player - no dwnlo

    I am running windows xp sp2 and I have set my dowload location under (tools/options), but when I select an MP3 file to download, firefox does NOT copy the file to my chosen location on my HD - instead, it opens up a new window with a makeshift "player" and begins loading the player with the MP3 file. The problem is that I have no idea where on my system firefox has copied this file to, so, I cannot leave and come back later and play this MP3 file using winamp. I have to listen to it right then or lose it - if I close that new window (with that puny little "player"), then I lose the download, wherever firefox put it on my PC (I got no idea where it is). This is all under firefox 25.0
    I am also running FIrefox 12.0 on an older windows 2000 machine and that works perfectly - I can download any MP3 file I want, and firefox 12.0 (on win2k, sp4) downloads it to my chosen location (on my HD), and it gives me the download window so I can watch its progress and have some control over pause, and resume, and, when it is done, the download window offers me the option to "open containing folder" so I can make sure it got to where I wanted it. In other words, Firefox 12.0 on WIn2k, sp4 works better than firefox 25.0 on winxp sp2!!!!! What gives? I went through and set up my options for XP just like I did with Win2k and it all looks good, but firefox 25.0 just ignores my chosen location and always defaults to give me that makeshift player and I am not able to actually copy the mp3 file to my harddrive - it makes firerox 25.0 almost unusable since downloading mp3 files is a big part of my firexfox use - please help - I am not able to upgrade windows at this time, and, since firefox 12.0 still works fine on win2k, I can't understand what happened at firefox?

    Phillipp,
    I tried it again using "save link as", and this time it actually worked! I just now downloaded several more using the "save link as" option, and it works perfectly. Thanks. Problem solved.
    Littleberry

  • New Window from "FILE- NEW-WINDOW" duplicates all the currently open tabs in the new window. I want new window with just the "Home" tab please?

    Running Firefox 3.6.13 on 64Bit Win7.
    I like to group tabs on a topic in a window, and when the tabs get to be too many, or a new topic, I do FILE->NEW-WINDOW and expect a new window with just one default (Home) tab. Instead I get a new window with ALL the tabs of the first window.
    I have checked all the Options I could find. Nothing helped. I CAN make a new Window with just one tab if I right-click a link and say "Open in NEW Window".

    A new window should only open with the home page(s).<br />
    If you see differently then you need to check your extensions.
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]

  • How to open new window with required size when clicking on image in a table

    Hi,
    There is an image column in advanced table. i want to open new window with required parameters(size, toolbar, status bar,etc..) and with that transaction context.
    can any one help plzzzzzzzz?
    Thanks
    Raju

    You can also use OAF js function to open modal pop up:
    openWindow(self, '<url>','longTipWin', {width:900, height:400}, true); return false;
    --Mukul                                                                                                                                                                                                                                                                                                                                   

  • How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    Hi
    Please take a look to this thread Re: Can I refresh the browser rather than open a new tab?

Maybe you are looking for