cancel
Showing results for 
Search instead for 
Did you mean: 

File path selected by the user!!! (File Download)

former_member184029
Participant
0 Kudos

Hi,

Does exist a component, code line or any thing which emulate the Windows option <b>SAVE AS:</b> when the user does right click, but using a button to do this?

If somebody knows? I will appreciate it.

Thanks in advance!!!

Tokio Franco Chang

Accepted Solutions (1)

Accepted Solutions (1)

thomas_szcs
Active Contributor
0 Kudos

Hi Tokio,

I was wondering, if you use Web Dynpro ABAP? You could call CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE to add one or many files to a response. Depending on how you set the parameters they will be offered to the user as "save as" popups or in a separate browser windows.

Best regards,

Thomas

former_member184029
Participant
0 Kudos

Hi Thomas,

First, I apologize because I don't complete the information.. Sorry and Thanks. I use NWDS Version SP14

Regards,

Tokio

Former Member
0 Kudos

I believe your requirement is to provide the Save as option when user click the right button on the mouse. If that is the requirement then, no u can't.

With Web Dynpro you would not be able to access the client system or devices.

If your requirement is to provide a button which provides you the Save As option, then you can save the file in the server and provide a popup window to change the name and extension of the file.That would depend on your code.

Noufal

former_member184029
Participant
0 Kudos

Noufal

Thanks for your information!!! I found this post which has code lines to export data from a Web Dynpro table to Excel file, it is saved perfectly in the local machine and save it in the server won't be problem.

Your recomendation about the post it is to provide a popup window to change the name and extension of the file, how can I make it? ... Is there an UI Element in NWDS?

Regards,

Tokio

Former Member
0 Kudos

Using fileUpload UI element you can get the filename. Hence if you require to change the filename you can change the attribute as you require.

Noufal

former_member184029
Participant
0 Kudos

The Web Dynpro UI Element provides two UI elements, first <i>FileDownload</i> and second <i>FileUploap</i> I found a document for <b>Uploading and Downloading Files in Web Dynpro Java</b> <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f5d3c40a-0801-0010-55b7-9e3b01745a40">Application example and PDF file</a> which help me to solve this problem.

... and Thanks to all of you

Tokio Franco Chang

Answers (0)