Call selected report in new External window

Hi ,
I have a dropdown with 10 reports. say exaploe Report1, Report2......etc
Now when i selct a Report1 from the drop down and click on PintReport button , I would like call a new External Window. This exteral window should display the data in a table from executed related reportRFC1.
Please can you give some advice what is the best approach to achieve this.
Thanks
Krish

Hi,
if you have the output of your reports as HTML, you can easily use this:
html = htmlheader + htmlBody + htmlfooter;
final IWDCachedWebResource resource = WDWebResource.getPublicCachedWebResource(html.getBytes("UTF-8"), WDWebResourceType.HTML, WDScopeType.APPLICATION_SCOPE, wdComponentAPI.getDeployableObjectPart(), "Title");
resource.setResourceName("HTML_inline.html");
resource.setAttachment(false);
resource.setReadOnce(false);
resource.setMakeCopy(true);
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getAbsoluteURL(), "New Window Name");
window.show();
Maybe you can use wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getAbsoluteURL(), "New Window Name"); In an other way. It's a method, that opens a new Browser Window.
Best regards,
Christian

Similar Messages

  • Calling web report in new browser window

    I have one Web-based Oracle report where I am calling another report in a FormatTrigger as:
    http://myserver/cgi-bin/rwcgi60.exe?key1+:param1
    I want to run this second report in a new browser window. I tried using TARGET="_blank"
    but I get syntax errors. I know that without the cgi parameters, it is easy to include the TARGET after the URL. But can anyone tell me the correct syntax for the above case (with parameters)? I tried putting the TARGET before '?' and after the param but both failed.
    Thanks
    null

    try this in your format trigger:
    web.show_document('http://myserver/cgi-bin/rwcgi60.exe?param1=value+param2=value', '_blank');

  • Webdynpro application can't display a URL iView in a new External window

    Fellow developer:
    In my WD4A application, I called the method 'navigate_absolute' to display a URL iView in a new External window.
    The code is as follows:
    data lo_portal_manager type ref to if_wd_portal_integration.
    call method lo_portal_manager->navigate_absolute
    exporting
      navigation_target = 'ROLES://u2026'
      navigation_mode = '1'.            ('0' - Displayed in the Same Window, " '1' - Displayed in a new External Window)
    The application can display the iView in the same Window (navigation_mode = '0'), but cannot in a new External window (navigation_mode = '1').
    In the iView properties, the following attributes are set to:
    1. Launch in New Window - Dipslay in Separate Window
    2. Open iView Links in New Window - Yes
    If you know the answer, please advise.
    Thanks
    Bac Quan

    hi,
    i have the same problem. Did you solve it?. Please let me know...
    regards,
    MC

  • Open an image in new external window...

    Hi all,
    I have an image in the server, say "c:\hai.jpg", through my application i want to open this image in a new external window on click of a button.
    I used the following code,
              String file ="C:\images\p.JPG";
              final byte[] content = this.getByteArrayFromResourcePath(file);
              final IWDCachedWebResource resource = WDWebResource.getWebResource(content, WDWebResourceType.JPG_IMAGE);
              resource.setResourceName("p."+resource.getResourceType().getFileExtension());
              try
                   final IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(resource.getAbsoluteURL(), "WD_Filedownload", true);
                   window.open();
              catch(Exception e){
                   wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(e), false);
    This code opens a new Internet Explorer, but not the image. When i printed the AbsoluteURL of the resource, its printing null. Where am i going wrong?
    Thanks in advance,
    Pravin

    Hi Armin,
    I am using this byte array code
         private byte[] getByteArrayFromResourcePath(String resourcePath)throws FileNotFoundException, IOException
               FileInputStream in = new FileInputStream(new File(resourcePath));
               ByteArrayOutputStream out = new ByteArrayOutputStream();
               int length;
               byte[] part = new byte[10 * 1024];
               while ((length = in.read(part)) != -1) {
                 out.write(part, 0, length);
               in.close();
               return out.toByteArray();
    Thanks
    Pravin

  • Create new external window and displays the viewdata as pdf?

    Hi,
    I have developped an application that will display some textviews and one table that displays 5 records,
    for this I want display as new External window and dispay in PDF the data what we have in view.
    advise me how to approach for external window and diplay as PDF.
    Thanks,
    Lohi.
    Message was edited by:
            Lohitha M

    Thanks for your reply,
    Here my problem is now I am getting the table values as output in the Jsp.
    In Jsp I want to create Button when I click that button I need to display an external window and display the table data what ever is available that will display new external pdf.
    I have developped the applcation by using of the three files table.java,tablebean.java,table.jsp and in portalapp.xml cretated the component.
    Now  how can I perform my action in that existed Jsp page and how to display extenal window i that how to generate the PDF.
    I am in learning stage in this.
    please elobarate with atleast some snippests.
    Thanks,
    Lohi.
    Message was edited by:
            Lohitha M

  • Display Integrated Oracle Report in New Browser Window

    Hi All,
    I am using APEX 3.0.1 and Reports Builder 10g and have integrated my Oracle Reports (.rdf) successfully with APEX.
    The trouble is that the report output (in PDF format) is opening in the same browser window as my APEX application and I would like to spawn a new browser window to display the report output.
    The report is being called from a button with a Target of URL and the URL Target is:
    &REPORTS_URL.&module=DEBITNOTE_REP.rdf&destype=cache&desformat=pdf&P_DEBITNOTEID=&P73_DEBITNOTEID.
    Kind Regards,
    Gary.

    Hi Garry,
    Had to do the same thing last week.
    1. Create a javascript function that accepts the report parameters and calls the window.open function for the reports URL
    2. Change the URL on the report button to call this new function
    It might also be worth using a cmdfile (see reports doco) to simplify the URL
    cheers,
    Ron

  • Open PDF in New External Window

    Hi
    how to open a PDF Report(File) in new IE Window from WebdynproJava
    Regards
    Dhinakar

    Hi,
             If the PDF document is in the server then we can show that in the external window onClick of the button.
    Write this code in the onAction button event.
    try
    byte[] content =this.getByteArrayFromResourcePath("<server path>\Guide.pdf");
    String stResourcePath = new String("<server path>\Guide.pdf");
    IWDCachedWebResource resource = WDWebResource.getWebResource(content, WDWebResourceType.PDF);
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getAbsoluteURL()," document");
    window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
    window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
    window.open();
    catch(WDURLException ex)
    catch(IOException ex)
    Paste this code here:
    //@@begin others
    private byte[] getByteArrayFromResourcePath(String resourcePath) throws FileNotFoundException, IOException
           FileInputStream in = new FileInputStream(new File(resourcePath));
         ByteArrayOutputStream out = new ByteArrayOutputStream();
         int len;
         byte[] part = new byte[10 * 1024];
         while ((len = in.read(part)) != -1)
                   out.write(part, 0, len);
                   in.close();
                   return out.toByteArray();
       //@@end
    Regards,
    Vijai

  • Open discoverer report in new browser window and without connections page

    Hi All,
    We are using Oracle 11g Discoverer 11.1.1.4.  Requirement is to open the discoverer report in a new browser window and without connections page.
    When we are running discoverer reports with this parameters we unwantedly get the connections page of the discoverer plus which we don't want.
    Went through the documentation given in this page and followed it still the issue persists, and i see couple of threads with my issue and no updates.
    This excerpt is from the documentation available in the link
    " _plus_popup=true and framedisplaystyle=embedded launches Discoverer Plus in a new pop-up browser window that contains the Plus applet embedded in it "
    http://www.art2dec.com/documentation/docs/oas10g1012/linux/bi.1012/b13918/urlstart.htm
    and Here is what we use to invoke our reports.
    http://ipaddress:port/discoverer/plus?cn=cf_123&_plus_popup=TRUE&framedisplaystyle=EMBEDDED&wb=disc_wb_1
    Request the forum users from PRO discoverer group to help me out of this issue and expect a good discussion on this.
    Thanks in advance

    Closing the thread
    We were able to achieve by changing the browser settings in the IE 8 Browser. Disabled Tabbed browsing.

  • Command to open a PDF generated Oracle Report in New browser window

    I know this is probably something for the Oracle Forums but I'll ask anyway because I can't find any info out there on this, without some extra work.
    I am generating a PDF file from 10g Oracle reports on Linux RHEL 5 and storing the PDF file to the server. I can send that PDF file directly to a printer with the "lpr" command and that part works fine.
    What I'm wanting to do now is "View" the PDF from within the server in a new window. We are using RHEL 5 (Linux) platform and I'm trying to see if there is a way to open the file with a "command line" command that will open it in a new browser window or new window period (opening it with Adobe Acrobat).
    Does anyone have a command that will do this? Otherwise, how has everyone else been handling this. The idea of just viewing the previously generated PDF Report file will save us overhead on our database servers because they won't have to re-run some of the same reports over and over.
    Any help and assistance is appreciated.
    Chris

    Several options:
    - If you only want to show the pdf to the client without printing, use destype=cache and use WEB.SHOW_DOCUMENT after the RUN_REPORT_OBJECT (for examples search the forms-forum, there are lots)
    -If you have to generate the pdf to a file to get it printed, you could
    +use WEBUTIL_FILETRANSFER.AS_TO_CLIENT after the printing to transfer the file to the client, then use CLIENT_HOST to view it.
    +map the appserver-directory you generate the report to as a virtual directory in the application-server then use WEB.SHOW_DOCUMENT to directly access the generated file via url.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Generate PDF into New External window

    Hi All,
    I have developped an application.In that I am getting the data from R/3.In my application first View displays table of data and the table row contain some invoice information when I click that Row that information would be displayed as PDFform(created using interactiveforms) in an External window.
    Any body have done same or any suggessions please.
    Advance Thanks
    Mandapati.

    Hi Mandapati,
    I am afraid, the InteractiveFrom ui element can only be used to display a pdf on the view is resides. It is not possible to display the same view of the same session within another browser at the same time.
    Therefore, you cannot use InteractiveForm ui element, but you could generate a PDF using the API Heidi refers to. The pdf can be stored inside of the cache of the application server or could be retrieved by special self-implemented handler in ICF. If I am not mistaken, there exists some information on doing something like this inside of the BSP forum as I know that it is part of Brian McKellar's und Thomas Jung's BSP book. My advise would be to search for a weblog or inside of the BSP forum (or to buy the book g). Of course, all the above only applies if you use Web Dynpro ABAP.
    Best regards,
    Thomas

  • No Image Size menu or Message Size report in New Message window

    Greetings all,
    New iMac user (OS X 10.5.8, Mail 3.6). In scanning Mac Help & the Apple Support forums, I note numerous references for Mail 3.6 to an Image Size Menu button at bottom right of Compose window, and a Message Size window at the bottom left. Have never seen these items. Are they hidden? If so, what is the reveal? Appreciate any assistance. Thank you.
    Gallery Info

    To All,
    After sending in my question, I went back to Mail Help & noticed that images could be attached by dragging from Photo Browser or Desktop or Finder, or by clicking on the 'Paperclip' icon. We had only ever used the 'Paperclip'. Dragged an image from the Photo Browser and both Message Size report & Image Size menu button appeared. Then went back and tried Desktop, Finder & 'Paperclip'. Now, the two items appear, whichever method is used. Doesn't work on all .jpg images, but is sufficient for the need.
    Guaranteed that if original question wasn't submitted, never would have found out how it works. Many thanks to Apple Discussions.
    Gallery Info

  • Drop Down Menu - 3rd Level iView open in new external Window with parameter

    Hello Community,
    we have the following problem: We have created some drop down menu for the portal navigation. Some iViews we are going to open in new Window. Therefore the iViews are getting some parameters like: menubar=no, toolbar=no, resizable=yes, status yes....and so one....And also the iView has fixed height and width.
    Now when we are going to open the iview in the second level position, everything is working fine and the window functions are also used.
    When we change the position of the iview from an second level position to an third level position, and we want to open the iview from the drop down menu, the window functions and the size is not used.
    Can some one help? I have attached the JSP Code:

    [JSP File|http://www.megaupload.com/?d=R7YLTTKX]

  • Using web.show_document the first time makes new browser window lose focus

    Hi,
    In our application we use show_document(url, '_blank') to open our reports (as pdf) in a new window.
    Our environment is Application Server 10g Release 2 with Forms 10g Release 2 and jinitiator 1.3.1.22.
    The first time I call a report, the new browser window containing the pdf is shown but loses focus after about 1 second. The focus is then returned to the applet window. When calling a report again it always keeps the focus.
    After closing the applet window and restarting the application, the same thing happens: first report called loses focus, all others keep the focus.
    Does anyone have any idea why this is happening? We want the focus to stay on the new browser window every time...

    Hi Jeroen,
    I m also facing a problem something similar to yours. If you got any solution please let me know.
    Problem-
    Currently my application is running on Forms 9.0.4.2 and my form calls another third party which displays the image in image viewer in new browser. When user clicks on the button to display image, then I m using the following Code -
    -- Method: displayDocuments ([Ljava/lang/String;)Ljava/lang/String;
    FUNCTION displayDocuments(
    obj ORA_JAVA.JOBJECT,
    a0 ORA_JAVA.JARRAY) RETURN VARCHAR2 IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(1);
    JNI.ADD_OBJECT_ARG(args, a0, '[Ljava/lang/String;');
    RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'com/hli/imaging/adapter/LK_FormsImagingAdapter', 'displayDocuments', '([Ljava/lang/String;)Ljava/lang/String;', args);
    END;
    Image is displaying fine but the focus is staying on the newly opened browser. I want it to get back the focus to the forms window.Is this possible ???
    Thanks in advance
    Sai                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Opening the Pop-Up as a new external IE window

    Hi,
       I am oppening the pop up as a new external window by getting the deployed URL and passing the parameters through the URL. But when i tried to pass 10K values through URL its not working fine. Can any one suggest is there any limitation of passing Prameters through the URL?. if so is there any other way to pass a huge data?.

    Hi,
    Like Julio already mentioned, use data binding. It is really bad practice to pass parameters via URL arguments.
    Create a new view, add it to a new window, bind the appropriate context elements, and open the window as a popup from your application via:
    (IWDWindowInfo winInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("YourWDWindow");
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(winInfo);
    window.show();
    Hope this explains
    Best regards,
    Robin van het Hof

  • Open view in external window..

    Hi,
    try this:
    define a new window
    and at this to the link action:
    //Create a new Window and open it
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("MyNewWindow");
    IWDWindow window = wdComponentAPI.getWindowManager().createWindow( windowInfo, true);
    window.setWindowPosition(x, y);
    window.open();
    // Save WindowInstance in Context
    wdContext.nodePopup().bind(wdContext.nodePopup().createPopupElement());
    wdContext.currentPopupElement().setWindowInstance(window);
    Regards
    Sebastian

    >
    Husalban RM wrote:
    > Hi all,
    >
    > This is the scenario:
    >
    > In my WD i have a initial view with a selection criteria for search documents (like POWL) when you select one and push the button 'Display' I start a navigation to another view to display the details...
    >
    > Now the client wants to change that. When the user push the button 'Display' a new external window must be opened.
    >
    > With the method CREATE_EXTERNAL_WINDOW of the class IF_WD_WINDOW_MANAGER i need an URL that i haven't for call this view.
    >
    > Then, is necessary to create a new Webdynpro Application in my component in order to do it? Or is there any other way to do it?
    >
    > Thanks in advance.
    Hi,
    Should  it be absolutely a external window ?
    You can use a create_window method of the IF_WD_WINDOW_MANAGER to show it on a popup window.

Maybe you are looking for

  • No longer able to select customized color theme for a collection page?

    Previously I have been able to select a custom colour theme for my collections in Public Site Manager by clicking on Collections > Configure Selected Collection > Theme The 'theme' tab is no longer showing – see screenshot – Does this mean we can lon

  • How to send the Checked-in file to the user in workflow as an attachment.

    Hi All , I am using UCM 11g and i need to send email to the workflow users with the checked-in file as an attachment.Can anyone guide me how to customize or configure it in UCM 11g. Thanks !!!

  • Price variance in STO

    Hi All, My client requirement is when ever we do STO the price variance of material should be posted to supply plant. Now the system behaves like any price variance are posting to receiving plant only How to achieve this , we tried through posting ke

  • LabVIEW Run-Time Engine in Developer Suite DVDs

    Hi! I need to install the Labview Run-Time Engine on a PC. Where can I find it on my Developer Suite DVDs? (I'd like to avoid downloading LV RTE from NI website) Thanks in advance for any help, Marco Solved! Go to Solution.

  • Writting confirmation message??

    Hi all friends, I am developing one uploading software it is a total automatic process of uploading user only copy the files in predefind folder and click on upload button once and my software starts uploading one by one from queue and move the file