cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing FileUpload component

Former Member
0 Kudos

Hi experts.

I have an issue with the standard Web Dynpro component 'FileUpload'. I'm trying to customize the ouput text, so i can translate it to several languages. I've tried almost everything but so far, i wasn't able to find a solution.

Can you help me with it?

Best Regards.

Tusquimer.

[Example|http://img203.imageshack.us/i/dibujozwj.jpg/]

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

The FileUpload UI element is kind of special. The input field and button aren't separate UI elements rendered in HTML. It is just the HTML element <input type=file>. The button is generated by the browser, not Web Dynpro.

Former Member
0 Kudos

Hello.

So, in this case, would it be possible to generate some JavaScript code to change button's text? That's the first thing i thought of.

In case this is not possible, i was thinking of creating two different elements, the input field and the button (Doing it this way, i had no problems with the translation).... But i'm not sure how to do it, because the standard ABAP functions like CL_GUI_FRONTEND_SERVICES are not working....

Thanks for your help.

Regards

Tusquimer

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can not create custom JavaScript in Web Dynpro. You can not really perform a file upload without the FileUpload UI element. The is no "faceless" version of the upload because of browser security sandbox reasons. The only alternative is the ACFUpDownload in 7.01 - althought there is no file open/save dialog until 7.02 and the upload process was actually designed for the Content/Cache Server and you would have to write your own file upload handler.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b9157c878a2d67e10000000a42189c/frameset.htm

Here is an example of how to use with a custom upload handler:

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/109b9b52-bc00-2c10-8786-e4c5e96d...

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70645070-bb00-2c10-f086-f126721a...

or to build your own upload using Adobe Flex and FlashIslands (also 7.01).

Here is an example:

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d42644-91ef-2b10-228c-9e0ae75b...

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f044b62c-90ef-2b10-64a6-9ec25294...

Answers (1)

Answers (1)

Former Member
0 Kudos

Any ideas?