cancel
Showing results for 
Search instead for 
Did you mean: 

Hidden FILE_UPLOAD

Former Member
0 Kudos

Hi Guys.

I have a question regarding the FILE_UPLOAD element.

I want to upload a file with a predefined path into my application when the user clicks a button. So i use FILE_UPLOAD, set the file_name via context binding and visible to none. I have a button which reads the content of the data attribute and converts it to text and fills a text view.

My problem is that it is not working. It only works when FILE_UPLOAD is visible and the file chooser is used.

Any ideas?

Cheers,

Sascha

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Sascha.

Try using the method CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE. You can find and example in the web dynpro component WDR_TEST_EVENTS, view BUTTON.

Regards,