cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with filedownload

Former Member
0 Kudos

Hai,

I m using filedownload ui element for downloading an excel file. when i click the download it opening a new window I given behaviour is allowsave, so its giving options open,save and cancel. when i select open the excel is opened in another window.

wht i required is

1)if i click on open i need to open the excel on that popup window

2) if i click on save or cancel the popup window need to close automatically

Thanks& Regards,

Naga Raju

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

the FileDownload has a property behaviour, that determines what will happen if the user clicks on the FileDownload Ui element. If you set the value of behaviour to allowSave, the user can decide where to save the file.

See here: http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/32cc6922fb6040a768652aaa0b6879/frameset.htm

Kind Regards

Stefanie

Former Member
0 Kudos

Hai Bacher,

My problem is when i click the filedownload its opening a new window unnecessarly. how can i close that new window dynamically.

regards,

Former Member
0 Kudos

Hi,

Am not sure which window you are talking about it.. If i have understood your problem..

try this..with the property

● 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.

Regards

Bharathwaj

Former Member
0 Kudos

Hi Bharathwaj,

I am talking about the new popup window opened when you click on the filedownload element. i want to close that window automatically.

clearly.

[ have popup with FileDownload control on it. Clicking the link(FileDownload) system opens IE window with small "Download" window (open,save,cancel).

The question is how to close programmatically this IE window after download (or open) is complete ?

I don't want the user to have to do that manually ?

]

regards,

BeGanz
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hallo Naga,

you cannot close the IE window after download programmatically from within your Web Dynpro application. The user must manually close it. What you can do is the following ...

You can dynamically set the behavior property of the FileDownload-UI-element. The enumeration type WDFileDownloadBehaviour determines how the downloaded file is represented on the client. This property can have three different values:

  • <b>AUTO</b>: The behaviour is predefined and depends on the mime type of the downloaded file.

  • <b>ALLOW_SAVE</b>: An open/save dialog asks the user.

  • <b>OPEN_INPLACE</b>: The file will be opened in place in the web page with the browser-embedded application program.

Regards, Bertram

Former Member
0 Kudos

Hai,

can i put close button in the above popup window.

is it possible ? (How can i use the target property of the file dwonload ui element)

regards,

Message was edited by:

Naga Raju Meesala

Former Member
0 Kudos

hi,

check out this pdf. <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/exporting%20context%20data%20into%20excel%20using%20the%20web%20dynpro%20binary%20cache.pdf">Excel Download Example</a>

this pdf is very useful.

Regards,

Gopi

Former Member
0 Kudos

Hai,

I am not having any problem with downloading excel, i have the only problem with popup window while downloding.

regards,

Former Member
0 Kudos

hi ,

any body tell me how to use target property in filedownload ui element

regards,

naga raju