on 01-30-2009 8:14 AM
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' ).
If we open the page new window. there isnt any problem about this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.