cancel
Showing results for 
Search instead for 
Did you mean: 

FileDownload target property

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

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

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://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</a>

Please reward points if it helps..

Thanks and Regards

Avijit

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

-Kelly