How to manage file on client PC [message #1804157] |
Tue, 19 March 2019 14:29 |
|
Hi,
I have the necessity to manage files directly on the client PC, or better I have the necessity to move one specific file from one folder to another in the client PC.
Is this possible with Scout 8.0?
If yes, someone have any suggestions from which start?
Thanks in advance for any hint
|
|
|
Re: How to manage file on client PC [message #1804188 is a reply to message #1804157] |
Wed, 20 March 2019 07:17 |
|
Since Scout is a web-framework there is no standard way to access or manipulate the local file system of a client PC. There are a few solutions how you could do this, but none of them is directly related to or supported by Scout.
1.) In a Scout Classic application you could write an executable with a REST API that runs on the client PC (localhost). A custom Scout widget that runs in your browser, could connect to that API by doing an AJAX call and the implementation of the API would move the files on the local PC. There are some challenges concerning authentication, CSPs and deployment/installation/monitoring of that local executable.
2.) You could wrap your Scout application in a container like Apache Cordova. The container is basically a wrapper around a browser-window giving you some extra features like file system access. These features are exposed through a JavaScript API, which means you need a custom Scout widget too. We use this approach for Scout JS applications that run on mobile devices, but it should also work for Windows and other OS supported by Cordova. However: the user cannot simply start the Scout application in a regular browser anymore, but needs to start the wrapper-application like any other executable on that PC.
Eclipse Scout Homepage | Documentation | GitHub
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03312 seconds