cancel
Showing results for 
Search instead for 
Did you mean: 

wdr_task=>client_window->client->attach_file_to_response and reflesh page

Former Member
0 Kudos

Hi expets,

I want to download table data to excel file. First i used filedownload UIelement, but the data isn't seen as excel file.

I use wdr_task=>client_window->client->attach_file_to_response method to download file. But internet explorer page is refleshing after accept the filedownload so the view that table is displaying lost and user must fill the required fields again.

how can i do?

thanks for helps

wdr_task=>client_window->client->attach_file_to_response(

i_filename = 'excel_file.xls'

i_content = xls_file

i_mime_type = 'XLS' ).

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

If we open the page new window. there isnt any problem about this

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You shouldn't use the WDR_TASK object directly. Instead use the API CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE. It absolutely should not lose the input data values, assuming that you are data binding them correct to your context. The attach file to response should send the content down after a normal server event/page rebuild.