cancel
Showing results for 
Search instead for 
Did you mean: 

Action of FileDownload

Denis_Müller
Participant
0 Kudos

Hello

I have FileDownload UIElements on my view.

These elements are displayed dynamically.

For each FileDownload i have a file. These files i write into the context.

if i click on one filedownload i can't establish what element is select.

The download starts immediately.

But when the user click on one filedownload-element i must set the lead-selection on the right data and then the download can starts.

Is there a method or an event/action to catch? If there is a event/action how can i handle it?

Thanks for your help

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_szcs
Active Contributor
0 Kudos

Hi Denis,

instead of using FileDownload, use a LinkToAction and call CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE. That way you

can control the click.

Best regards,

Thomas

Denis_Müller
Participant
0 Kudos

Ok thats good.

But if i have a Word-Document as Xstring i can't read the file when it is downloaded.

what is the problem?

what is the mime-type of a zip file?

Edited by: Denis Müller on Feb 26, 2008 8:10 AM

Denis_Müller
Participant
0 Kudos

now i get the right text in the file.

But i have another problem.

If i click on the linktoaction and after the file-download i click on a tab in my application all tabs vanished.

In my opinion this isn't normal. Is there a solution?

thomas_szcs
Active Contributor
0 Kudos

Hello Denis,

there have been a number of fixes to CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE. My suggestion is to search for oss notes that fit to the sp level of your system. Likely, it's a bug or sideeffect, which might have already been fixed.

Best regards,

Thomas

Denis_Müller
Participant
0 Kudos

i searched the oss notes but i can't find anything.

has anyone the sam problem as i?

we use SP 10

is there a another way to display a XString (File) ?

thomas_szcs
Active Contributor
0 Kudos

Hello Denis,

there's a large number of oss notes that are all relevant for SP10. Just search for ATTACH_FILE_TO_RESPONSE or

AttachFileToResponse. Most of the notes cannot be applied directly to a SP10 system though. In order to apply the

fixes, the appropriate SPs have to be applied.

Best regards,

Thomas