Open Documents in new window fails

Hello,
I have created successfully an action where I want to open a new window to show/download a document. After triggering the action the window opens and closes immediately afterwards without asking to download the document. The curious thing is, when I am deploying the Web Dynpro application from Developer Studio and run it directly in internet explorer it works. But when I am creating an iView I will get the above mentioned behaviour. Is this a bug? Can you help me out?
Best regards,
Denis

Hi,
You have to set the "useWindow" property on the button to "true", and the action must start with "dialog:", like "dialog:action". And, in adfc-config.xml you have to have navigation defined also with "dialog:action".
<af:commandButton text="Button"
         action="dialog:action"
         useWindow="true">
{code}
Pedja                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Open Link in New Window fails

    It seems after a while, now Firefox 4.0.1 has a issue with the "Open Link In New Window" option fails to load the web page. It opens the new window, but does not load the web page that you click on. Instead it opens a new window with a blank tab.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Problem Opening document in New Window

    Hai all,
    in my JSP page i have a link. the link path i am getting from database which is actually a word document present in a local drive. to open the file in a new window i have written the code like this
    <a href="<%=docPath %>" target="_blank">Open New</a> Now problem is in IE file is opening in a new window but in Mozilla FireFox it is not opening.
    Thanks in Advance

    Here are some thoughts on this kind of thing: http://www.trilithium.com/johan/2005/03/target-blank/

  • Opening document in new window

    I've added a button to the online help toolbar in the Skin
    Editor and created a link to the manual in the Action Tab. I
    compiled the help and when I select the button, the document comes
    up in the topic pane window in the online help. I want the document
    to open in a new window with the appropriate application (Word for
    .doc, Adobe Reader for .PDF, etc.). I think this requires some
    javascript but not sure. How would I go about doing this?
    Thanks in advance for your time.
    Bill

    Hi Bill
    I believe that how these documents open are dependent upon
    the settings for each PC viewing the page. For .PDF content, each
    user has the ability to configure the settings for their PDF reader
    to choose between whether PDF files open in the browser or in the
    PDF reader. Additionally, browser add ins may have a role too. For
    example, I use FireFox as my primary browser. I have an add in for
    FireFox that allows me to choose what happens when I click a link
    that opens a PDF. The add in prompts me for my desired action.
    I believe Word is similar, but I'm not sure where you would
    go to change the behavior of how it opens. But I do believe there
    is a setting on each Windows install that governs how Word
    documents are handled when opened from a link on a web page.
    Actually, I just conducted a Google search and here is a link
    or two that you may find interesting.
    Link regarding Word
    Documents
    Link regarding
    PDF Documents
    Hopefully this helps... Rick

  • Asp requests download instead of opening document in new window

    I go to certain websites with the new FF 4 and attempt to access a document that uses asp and FF downloads it instead of opening it. Works fine in Safari, Chrome, Opera but not in FF.

    see : [https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file Change what Firefox does when you click on or download a file]
    see also : [https://support.mozilla.org/en-US/kb/set-how-firefox-handles-different-file-types Set how Firefox handles different types of files]
    thank you

  • When I click on a link within a website to open a document (word, excel etc.), Firefox doesn't open it. Even when I tell it to open in a new window, it just opens a blank tab labeled "untitled."

    When I try to click on a link to a document within a website, that document doesn't open like it should. For instance, if I go to the census website and click on a link to open an excel spreadsheet, Firefox doesn't do it. It usually does nothing; if I tell it to open in a new window or tab, it just opens a tab labeled "untitled" that ends up being a blank page.
    == This happened ==
    Every time Firefox opened
    == 2 months ago?

    Go to Tools->Options->Apps
    Here you should see two columns: Content Type on the left, Actions on the right.
    Find and select excel spreadsheet or any other content type in the left column. There should be a corresponding action in the right column. What is it? You can use the drop-down list to select the option you want:
    Always Ask - Firefox will ask each time: What do you want to do with this file?
    Save file - Firefox will save this file to your computer
    Use - Firefox will give this file to the program to open it
    In case of saving, Firefox will either prompt you every time where you want the file to be saved, or save it to the default location. It depends on the preference in
    Tools->Options->General->Download

  • Opening PDF Document in New Window

    Hi,
    I have requirement to open pdf document in new window. I'm using Travel Expense form. I'm using the FM PTRM_WEB_FORM_PDF_GET. When I give 'X' to i_display_form, it displays the pdf document in same session or window. But I would like to open the pdf file in new window.
    The FM gives me pdf data of type RAWSTRING. Is there any FM or class where I can pass this data and open it in New Window.
    Can anyone please suggest on this.
    Regards,
    JMB

    download it using  gui_download and use cl_gui_frontend_services=>execute to execute that pdf file

  • Target for a .pdf  with the link target _blank does not open in a new window.

    I have a simple html document with links to .pdf documents all set to _blank but only one opens in a new window.  The others open as _self.  Changing the target doesn't seem to make a difference.
    Any idea as to why that is happening?

    The Template .dwt file is only used locally by DW itself, there's no reason to upload it to the server unless you intend to share it with someone. You have to upload each individual page that the Template updates, every time you update the template and propagate that change across the child pages.
    It would probably be better to use a server side include. That way, you could update one file then upload it and all of your pages would automatically carry that update...
    SSI for Apache: http://www.javascriptkit.com/howto/ssi.shtml
    PHP's version: http://www.tizag.com/phpT/include.php
    It's especially handy if your site gets to the point where you have more than about 20 pages.

  • How can I set web links to open in a new window?

    I'm using the links tool in Acrobat 5.05 to create links in my pdf to other websites, not documents. When the pdf is posted online, I need those links to open in a new window. Now they open in the same window, which subjects the viewer to using the back button to return to the originating pdf and waiting for it to completely reload. This is a sizeable pdf file, making that very time consuming. I tried Un-checking the option about "Open Cross Document Links in Same Window" but tests indicated that it made no difference.
    If you need more info to clarify my question, please just ask. Any suggestions in regard to solving this will be appreciated.
    My apologies if a similar question has already been asked/answered. I did not find reference to it in my search.
    Thank you.

    You can use JavaScript for this. For example:
    app.launchURL("http://www.adobe.com", true);
    More information is in the Acrobat JavaScript reference. Note that this method is new to Acrobat 7. You can still use Acrobat 5 to create the JavaScript, but it won't work for versions less than 7, or for most users of non-Adobe PDF viewers. If you go this route, you should add some code that checks the version of Acrobat (Reader), and only execute the above code if 7 or above.

  • Open Hyperlink in New Window

    I have created an interactive pdf in Indesign.  It contains hyperlinks to destinations in a second pdf file.  I would like the hyperlinks to open the second pdf file in a new window.  Is there a way to do this either in Indesign or Adobe Professional?
    I see that it is possible in Acrobat if the docements were just to files but I am using them on a web server.
    Thank you for your help.

    Hi George -
    Thanks for your reply.  I would be happy if it would open in either a new browser window or a new Acrobat/Reader window.  The first file is a large file and the links are to a suppporting much smaller file.  I would like the first file to stay open so that it doesn't have to keep reloading and so that the user doesn't have to use the "back" button.  (My guess is that that the user is going to close the window after clicking the link, expecting that it would open in a new window,  and get very frustrated reopening the first file)
    What type of links have you set up, exactly (web link, open file, go to page in another PDF, etc.)?
    I created the links while the file was still in InDesign - they are hyperlinks to a URL -  and the URL  is a destination in another pdf file.
    The final product - both documents - will be posted on a web server.
    Before posting the files to the web I was successful in setting up the links to open in a new window (go to a destination in another file).  But once placed on the server this no longer works.
    Thank you again,
    Denise

  • Opening PDF in new window

    Hi all
    We want to generate a pdf at runtime in new window on click of a button suppose 'Show PDF'. We have written following code using MVC module.
    In HANDLE_EVENT for the button we are calling a controller method say 'Preview_PDF' which is generating a pdf and it opens in a new window too.
    But at the same time we are getting blank screen or view from where the event is triggered. I want the parent view should remain undisturbed and pdf should open in new window. Please advice where am I going wrong.
    Code written is as follows
    this is a controller method
    method PREVIEW_OFFER_LETTER.
    DATA: cparam TYPE ssfctrlop,
          outop TYPE ssfcompop,
          fm_name TYPE rs38l_fnam,
          my_tabix TYPE sy-tabix,
          file_size TYPE i,
          bin_filesize TYPE i,
          l_pdf_xstring  type xstring,
          lt_lines       type table of tline,
          ls_line        type tline,
          l_pdf_len      type i,
          tab_otf_data TYPE ssfcrescl,
          tab_otf_final TYPE TABLE OF itcoo .
      outop-tdprinter = 'PDF1'.
      cparam-no_dialog  = 'X' .
      cparam-preview = space.
      cparam-getotf = 'X'.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname = 'ZHRERF_OFFER'
    VARIANT = ' '
    DIRECT_CALL = ' '
      IMPORTING
      fm_name = fm_name
    EXCEPTIONS
      no_form = 1
      no_function_module = 2
      OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
      control_parameters = cparam
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
      output_options = outop
      user_settings = space
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
      job_output_info = tab_otf_data
    JOB_OUTPUT_OPTIONS =
    *TABLES
    *it_tab = itab[]
    EXCEPTIONS
      formatting_error = 1
      internal_error = 2
      send_error = 3
      user_canceled = 4
      OTHERS = 5.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *********appending the otf data into the final table*********************
    tab_otf_final[] = tab_otf_data-otfdata[].
    converting OTF data into pdf data**************************
    data : it_OTF type table of ITCOO.
    it_OTF[] = tab_otf_final[].
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
       FORMAT                      = 'PDF'
      MAX_LINEWIDTH               = 132
      ARCHIVE_INDEX               = ' '
      COPYNUMBER                  = 0
      ASCII_BIDI_VIS2LOG          = ' '
      PDF_DELETE_OTFTAB           = ' '
    IMPORTING
       BIN_FILESIZE                = l_pdf_len
       BIN_FILE                    = l_pdf_xstring
      TABLES
        OTF                         = it_OTF
        LINES                       = lt_lines
    EXCEPTIONS
       ERR_MAX_LINEWIDTH           = 1
       ERR_FORMAT                  = 2
       ERR_CONV_NOT_POSSIBLE       = 3
       ERR_BAD_OTF                 = 4
       OTHERS                      = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      l_pdf_len = xstrlen( l_pdf_xstring ).
      data: cached_response type ref to if_http_response.
      create object cached_response type cl_http_response exporting add_c_msg = 1.
      response->set_data( data   = l_pdf_xstring
                            length = l_pdf_len ).
      cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                  value = 'application/pdf' ).
      cached_response->set_status( code = 200 reason = 'OK' ).
      cached_response->server_cache_expire_rel( expires_rel = 10 ).
      data: guid type guid_32,
            display_url TYPE STRING,
            value type string,
            extension type string.
            extension = 'pdf'.
      concatenate 'attachment; filename='
                        runtime->application_name
                        extension
                        into value.
      cached_response->set_header_field( name  = 'Content-Disposition'
                                  value = value ).
      CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_32 = guid.
      CONCATENATE runtime->application_url '/' guid '.pdf' INTO display_url.
      cl_http_server=>server_cache_upload( url      = display_url
                                             response =    cached_response ).
      NAVIGATION->RESPONSE_COMPLETE( ).
    endmethod.
    Please advice

    Capture the generated url for the PDF document into a variable w_url and then use the client click event of the button SHOW PDF to open it in a separate window.
    something like this
    <htmlb:button id="btn1" onClientClick="window.open(w_url)"
    this should open your pdf in a new window.
    hope this helps.
    Cheers

  • How To Make Links In A .PDF Open In A New Window

    Hello,
    I am using Acrobat Pro 10 to create a fillable employment application. At the top of the main application, I want people to be able to click and be redirected to another .PDF file I have hosted on my site that they will need to fill out in addition. So, I have used the link tool, but this closes the main pdf application and opens up the new pdf in its place. This is very problematic, because it clears out all of their data in the previous main application. So, I need the link to open in a new window and not in the same one as the original form. Is this possible?
    I have tried using the Java work around explained in this article: http://mythinkpond.wordpress.com/2009/11/04/opening-a-link-in-a-pdf-document-in-a-new-wind ow/
    However, when I do this, and upload it to my site the link doesn't do anything. When you click above the word where the link should be, it doesn't show the finger pointer and doesn't do anything when clicked.
    Any ideas? I greatly appreciate any help...

    That makes sense. So I guess it looks like I have 2 options.
    1. Put the JS short code in and have it open the link in a new window if the user opens it in adobe. If a google chrome user opens it in the default viewer, they wont be able to use the link at all.
    2. Leave the link how it is, and it will be usable in both viewers, but will not open it in a new window.
    I am sureprised that opening the link in a new window isn't just an option in Acrobat Pro. I wouldn't think you'd have to make a workaround like this.
    Is there an alternative way to have a page link on the form so that people can go to another .pdf whil keeping the main one open?

  • Interactive PDF, open file in new window.

    Hello everyone,
    I was unable to find this on the net or I could be using the wrong typed search. Created a successful interactive document. I attached a portfolio to this interactive document. I have 3 images. Two are hyperlinked to specific urls which work just fine. I have a sample button which opens the pdf. The only problem I have is that the pdf open in the current pdf window of the past file, so one has to reopen the original file again to access it. I could create a button on the portfolio webpage to go back to the original document, but that would be 20 buttons.
    Is there a way for someone to click on the sample button, but open up a new window like you would for a webpage?
    Right now the setup in the Buttons and Forms window:
    Sample button
    Type: button
    Name: Sample
    Event: On Release or Tap
    Open File - Checked
    Select File: current path
    PDF Options
    Description: Portfolio Samples
    Printable - Checked.
    That is pretty much it.

    Not everything can be done in InDesign when it comes to interactivity and forms. I believe you have to use a JavaScript in Acrobat to get the file to open in a new window. I can't provide you a specific reference. Ask on the Acrobat forums.

  • How can i make my hyperlinks open in a new window or tab?

    how can i make my hyperlinks open in a new window or tab?

    The program is InDesign… we need to cease links which will open the linked document in a separate window.  Also, the links must be maintained once a pdf is made and the files moved to another computer….

  • How can i customize flash player to open frames in new windows ??

    how can i customize flash player to open frames in new windows ??

    In case you haven't solved this, this document might help:
    http://helpx.adobe.com/flash-player/kb/create-pop-browser-windows-flash.html

Maybe you are looking for

  • ReportDocument Constructor - takes a long time

    Hello, I'm working on a report viewer/exporter written in C#. The following code line takes about 5-10 seconds. CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new ReportDocument(); I have read on this forum that the Engine needs to buffe

  • Adobe Photoshop CS5 and activations

    Hi everyone...... I have Adobe Photoshop CS5 installed on on Windows XP computer. As I understand, I am allowed 2 activations.  If I first deactivate and then uninstall CS5 on my current computer Will I then get both of my activations back?  I intend

  • Processed successfully but not showing in the Payload

    Hi guys, My scenario is proxy to file. when I execute this report pragram in the R/3, it was successful. In the XI, generally we have three folders like SOAP body  and SOAP  HEADER and Pay loads in SXMB_MONI, display, but we not getting pay loads fod

  • Preview window

    This is my first post so bear with me. I use a HP8500 and run windows 7 and have Print Preview set to on. It works very well but occassionally while waiting for the preview window to pop up I do something else and then the window disappears and I can

  • Replacing a feature phone when contract has ended

    If I buy a couple of 'back up' feature phones like Verizon Lg Vx8575 Chocolate, not to add a line or change my service, is it an easy thing to do? The reviews on the two feature phones offered on Verizon don't seem to have very good reviews, and I do