on 02-21-2008 9:05 AM
I need to open the file from the directory mounted on the server, ot download it to my local PC on click of a button. There is a control LinkToURL in ABAP Wd which does the same functionality. But I need this functionality on button clicl event. Is it possible to trigger the same event (which is triggered on click of LinkToURL control ) on button click event?
Hi,
I dont want to use the fileDownlaod control. I just want to use the functionlaity of FileDownload control without using the control. Is there any way to trigger the same event (as triggered by FileDownload control on click of it) on click of a button?
Thanks and regards,
Anand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Idhaya,
it's for Web Dynpro ABAP. Got SAP access today, so here's the code snippet:
cl_wd_runtime_services=>attach_file_to_response(
i_filename = your_filename
i_content = your_content_as_xstring
i_mime_type = 'text/plain' "or what you need
i_in_new_window = abap_false
i_inplace = abap_false ).
Feel free to experiment with parameters i_in_new_window and i_inplace to adopt them to your needs.
Best regards,
Thomas
Hi
Insted of link to URL , please use FileUpload / FileDownload UI elements.
Thanks
Vishal Kapoor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.