on 02-12-2009 9:13 PM
Hi,
- cl_gui_frontend_services=>directory_list_files is no good for WD4A.
I would like to use this same functionality to get a list of files from a local directory so I can later put the file list into an ALV, but the frontend_services won't work for WD4A. Any ideas what will work here?
Thanks,
Josh
I'm afraid that what you describe is not possible due to browser security restrictions. You can use the fileUpload UI element which in turn opens a file dialog for the user to select a file, but the server side only gets posted back with the selected file - not information about the filesystem. The browser environment is much more sandboxed than the SAPGUI to protect users from malicous websites.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe I wasn't as clear as I could have been with my first response, but this simply isn't possible. The only possible workaround I could think of would be to use FlashIslands on 7.01 - but I have my doubts about this. Even the Flash Player in the browser is heavily sandboxed. The Flex commands to interact with the file system are only available to AIR applications. I read about some hacks that use C++ executable on the desktop and communicate with via socket connections from Flex. However this is way outside the realm of this discussion forum.
While we are in the realm of really crazy work arounds I suppose you could use the acfExecute in 7.01 as well. You would have to write a desktop application (like in .Net or C++) and distribute to all PCs in your network. You could then start this application using acfExecute. This application could read from the file system. However acfExecute doesn't allow applications to communicate back to Web Dynpro once started. So your desktop application would have to call a web service to post the information back to your server. Your web dynpro application would have to poll and query for this information once uploaded. The whole thing really would be very nice though.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.