cancel
Showing results for 
Search instead for 
Did you mean: 

Pre-fill the filename in Fileupload UI

Former Member
0 Kudos

Hi,

I am unable to pre-fill the filename in fileupoad UI.

When I launch the WD app, on the browser it get the following URL

http://devai063.private.xxxx.com:8081/sap/bc/webdynpro/sap/zgi_file_upload?sap-language=EN

at the end I add &filename=c:benefit.txt and hit enter,

http://devai063.private.xxxx.com:8081/sap/bc/webdynpro/sap/zgi_file_upload?sap-language=EN&filename=c:benefit.txt

In WD window HANDLEDEFAULT method I am checking for the filename parameter if not empty I am setting the 'filename' to the context of filename of fileuploadUI, but the app does not show the file name C:
benefit.txt in the fileupload UI.

I debugged the HANDLEDEFAULT and I can see the filename but somehow it is not setting to the filname for uploadfile UI.

any advice is highly appreciated.

Thanks,

Ram

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

From the online help:

Technical Browser Details Beyond the Control of WDA

Due to browser restrictions that are unrelated to Web Dynpro ABAP, the previously entered data path might disappear when a FileUpload UI element is clicked. In newer versions of the browser, it is therefore impossible to enter the file name in the entry field. The field always remains empty. The selection of the file name is therefore only possible in new browser versions using the Browse... button. You cannot enter the file name manually (using the keyboard or the Copy and Paste functions) or by setting the file name from the back end (directly or using context binding). For more details, read the security-related information in Internet Explorer 6 about handling <input type=file>.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b3/be7941601b1d09e10000000a155106/frameset.htm

Answers (0)