cancel
Showing results for 
Search instead for 
Did you mean: 

Open a local file in webdynpro

Former Member
0 Kudos

Hi All,

I am trying to open a file residing on user's desktop in webdynpro.

1. I have written a html page with javascript to open the file

window.location = 'file:///C:/Documents and Settings/mkharoda/Desktop/Questions.txt';

This file opens up if I open it up in IE browser and opens the file specified in the path.

2. I added this html page in my mimes folder

3. Assigned this html page as a source to IFrame (Although its deprecated but I don't see any other option)

When I execute my WD Applicaiton, it shows a blank page in IFrame. The same html page works fine when opened directly in the IE.

Expecting quick help sdn.

Also, if you have an alternate solution to open a local file then please suggest me.

Regards,

Murtuza

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Murtuza,

Did you get a clue on this one finally?

Regards,

Anagha

Former Member
0 Kudos

Hi Anagha,

I got another blog on sdn which wasn't regarding opening a local file in webdynpro but was reading bytes from RFC and opening it up in IFrame. I would still like to know if you have got a way to open up a local file because I can't use FileUpload UI element as user shouldn't be asked to specify the path to open the file but it should be done in the background.

Regards,

Murtuza

Former Member
0 Kudos

Hi,

One thing you have to understand here is Webdynpro doesnot support java script.

So their is no way to do things at client side using the scripting.

What ever is possible is at the server side, when you say that the local file need to be read with out uploading to the server (FileuploadUI) looks a bit unrealistic with webdynpro.

I dont have idea about JSF integration to WD , if you can create Components that supports java script and then embed them using the JSF bridge might be of help in this scenario.

Other alternative could be a component in Flex (that too not sure)

Regards

Ayyapparaj

Former Member
0 Kudos

FileUpload?

Armin

Former Member
0 Kudos

Hi,

window.location = 'file:///C:/Documents and Settings/mkharoda/Desktop/Questions.txt';

In the above code you have mentioned a text file Questions.txt' but I added this html page in my mimes folder in this you have mentioned it a html...........Please check it once.

If its a html page then below link can help you.

Regards

Narendra