cancel
Showing results for 
Search instead for 
Did you mean: 

IWDFileDownload: supress blank window?

Former Member
0 Kudos

Hi,

I'm using the webdynpro UI-Element IWDFileDownload. It works fine, but what I feel is really annoying is a blank browser-window which opens whenever the user clicks the file-download-link.

Is there a way to supress this blank window?

Thanks and regards

Jan Hempel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You might try to set the "target" property to "_self".

Armin

former_member413959
Participant
0 Kudos

Hi Armin,

I have the same problem, I tried with target=_self and the blank window is still opened.

I also get the blank window with "createexternalwindow",

any other ideas ?

Thanks

Former Member
0 Kudos

Hi,

You probably already solved your issue - if not, I solved this by setting the attribute "behaviour":


IWDFileDownload fileDownload =(IWDFileDownload) elementListe[j];
fileDownload.setBehaviour(WDFileDownloadBehaviour.OPEN_INPLACE);				

This makes the attachment open in the initially blank browser window.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Armin,

using _self as target worked fine! Thanks a lot!

Regards,

Jan

0 Kudos

Hi Jan,

Another workaround could be - to leave the "target" property empty in the UI designer.

This will not show any blank browser window.

According to the documentation, "target=_self" could crash the WD application, and is not reccomended, although I haven't tested this.

Former Member
0 Kudos

What browser are you using?

And what mime type you set for download content?

For me setting application/sub-type (like application/zip or application/octet-stream) + setting "isAttachment" to true always forces the following behavior:

1. Browser opens blank window for a moment (target =_blank on FileDownload control)

2. Then it closes it immediately prompting for download with standard dialog

Works both in IE6 & Firefox.

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com