on 2009 Jan 22 6:46 AM
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
Hi Murtuza,
Did you get a clue on this one finally?
Regards,
Anagha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
FileUpload?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
13 | |
11 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.