Skip to Content
avatar image
Former Member

FileDownload target property

I have a Web Dynpro application that uses the FileDownload control. It works fine with one exception: A new browser window is created each time the user clicks on the download link. Actually it works fine in Firefox but IE, which my users will be using, pops a new window.

I would like to prevent this and assume that FileDowload's "target" property what I need to use. However, I am not sure what value to use.

The documentation is attached below. It would seem that I would want to specify "_self" but the doc says this is not longer supported. It further says "Use exit plugs instead and specify the URL there." As a relative Web Dynpro newbie, I don't grok this. Can someone help?

Thanks in advance,

Kelly

target

Specifies the browser window in which the page is to be opened. You can manually specify the name of the target window or use the following values:

○ ""

The page is opened in a new window without a name. For every file download a new window will be opened

○ _self is no longer supported. Use exit plugs instead and specify the URL there.

&#9675; “<window name>”. You can specify a window name as string. For every file download the same window will be opened.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 13, 2007 at 04:28 AM

    Hi ,

    Please have a look into this tutorial .. this may help you to clear your doubts..

    Uploading" target="_blank">www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/202a850a-58e0-2910-eeb3-bfc3e081257f">Uploading and Downloading Files in Web Dynpro Java

    Please reward points if it helps..

    Thanks and Regards

    Avijit

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 13, 2007 at 01:19 PM

    Answering my own question from the upload / download tutorial:

    Web Dynpro defines _blank as the default value for the property target in the UI elements

    FileDownload and LinkToURL. Although the target values _top, _parent, and _self can be used, you are advised not to do so, as this will cause the Web Dynpro application to crash.

    Whereas target value _blank always causes a new target window to open, entering a target value like "SameWindow" causes a downloaded file to always open in the same target window (not the window of the application) if the UI element FileDownload is clicked more than once.

    In the case of UI element LinkToURL, an exit plug with URL parameters should be used instead of the target value _self.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 12, 2007 at 07:11 PM

    P.S. I tried specifying the application name, which appears in the title bar of the browser window. But that didn't work.

    -Kelly

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 13, 2007 at 04:43 AM
    Add comment
    10|10000 characters needed characters exceeded