Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » How to manage file on client PC(Scout 8.0)
How to manage file on client PC [message #1804157] Tue, 19 March 2019 14:29 Go to next message
marco giudici is currently offline marco giudiciFriend
Messages: 204
Registered: February 2013
Location: Italy
Senior Member
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 Go to previous messageGo to next message
Andre Wegmueller is currently offline Andre WegmuellerFriend
Messages: 61
Registered: September 2012
Location: Baden-Dättwil, Switzerla...
Member
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
Re: How to manage file on client PC [message #1804208 is a reply to message #1804188] Wed, 20 March 2019 13:11 Go to previous messageGo to next message
marco giudici is currently offline marco giudiciFriend
Messages: 204
Registered: February 2013
Location: Italy
Senior Member
Hi Andre,
thanks for your reply and your short explanation.
Now I check which way is better for my specific case
Re: How to manage file on client PC [message #1804251 is a reply to message #1804208] Thu, 21 March 2019 09:04 Go to previous message
Andre Wegmueller is currently offline Andre WegmuellerFriend
Messages: 61
Registered: September 2012
Location: Baden-Dättwil, Switzerla...
Member
You're welcome. It would be nice if you could share your insights with us. Since your case may be interesting for other developers migrating from an older Scout release with a classic rich client application to a newer browser-based Scout release.

Eclipse Scout Homepage | Documentation | GitHub
Previous Topic:Change session duration [MARS]
Next Topic:Scout 9.0 is now available
Goto Forum:
  


Current Time: Wed Nov 13 21:16:23 GMT 2019

Powered by FUDForum. Page generated in 0.02126 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top