Page 1 of 1

Usual Windows File Opener would be great

PostPosted: Mon Jan 05, 2015 5:45 pm
by Bernd.N
plugins.file.showFileOpenDialog() opens a quite small FileOpenDialog which makes a solution look a bit 80th, if I may say so. :wink:
Sure it has its advantages as it works well on both WC and SC.

However, from an enduser point of view, its unusual to deal with it, as he/she is used to a complete other file dialog, as shown in the attachment.

Does anyone feel like me that it would be great to be able to launch the modern windows file opener?
Or is that even already possible with an existing plugin?

Thanks
Bernd Korthaus

Re: Usual Windows File Opener would be great

PostPosted: Mon Jan 05, 2015 7:34 pm
by jcarlos
+ 1

Crowdfunding as option to fund this

PostPosted: Mon Jan 05, 2015 9:42 pm
by Bernd.N
I have no idea how complex the creation of such a new plugin would be (or the enhancement of the existing one, which might be a better idea). But to just play with numbers a bit, lets say it would cost 5.000 $, then you need just 50 developers/companies/ISVs who put 100$ into a crowdfunding pot. Then all those developers would have peace with their users who want the usual windows file picker.

If that works, that financing model of costly plugins/modules might be a good bet for other urgently needed functionality, too.

Re: Usual Windows File Opener would be great

PostPosted: Mon Jan 05, 2015 10:18 pm
by ptalbot
Problem here is not funding. It's the fact that the JVM doesn't use the native file browser window.
So the only way to do this is to use Native components, which is getting messy with all the deployment issues depending on the OS (Windows/Mac OS X/Linux) and the architecture (32/64-bit) and various security barriers introduced in Java with each new version... Support for the native dialogs in the BrowserSuite existed for years but can't support it anymore because of these issues.

Re: Usual Windows File Opener would be great

PostPosted: Mon Jan 05, 2015 10:45 pm
by Bernd.N
I see the problem, when you look at it from a most generic view, where one wants to create one ideal file picker for all operating systems/environments.

Would it be possible to create just a windows-specific plugin, with embedding in Servoy code like this:

if windows-client
plugins.newFilePicker.showFileOpenDialog()
else
plugins.file.showFileOpenDialog()

It could even have a much reduced functionality, just pick one file and that's it.

The new web startups we compete with are extremly good at UI and UX, that's why I try to find a solution here to not look old against them. :)

Re: Usual Windows File Opener would be great

PostPosted: Tue Jan 06, 2015 12:30 am
by ptalbot
An implementation using the java.awt.FileDialog (instead of javax.swing.JFileChooser) is possible but 1/ its implementation is terrible on Linux, 2/ it lacks a few options like multiple mode and file filtering at least in earlier versions of Java. So a Windows specific implementation could be done for Java 7+, send me a PM if you're interested...

Re: Usual Windows File Opener would be great

PostPosted: Tue Jan 06, 2015 3:47 pm
by grahamg
Have you looked at Patrick's excellent implementation of the Multi-File Uploader?

My clients love the improved interface with native file systems and ability to select or drag/drop multiple files.

https://www.servoyforge.net/projects/multi-file-upload

Re: Usual Windows File Opener would be great

PostPosted: Tue Jan 06, 2015 4:17 pm
by Bernd.N
Thanks for the hint, however we need smart client, that plugin is web client specific.

In case it is technically not possible to invoke the normal Windows Filepicker from inside Servoy, the way we will try is to create an own form that gets automatically filled with all file names in a specific standard folder of a user. Standard sort order would be file date descending. That way we can create a nice state-of-the-art UI and do also multi-file-grabbing at once.

Re: Usual Windows File Opener would be great

PostPosted: Tue Jan 06, 2015 9:46 pm
by david
Bernd.N wrote:however we need smart client ... That way we can create a nice state-of-the-art UI and do also multi-file-grabbing at once.


:shock:

Re: Usual Windows File Opener would be great

PostPosted: Tue Jan 06, 2015 11:08 pm
by Bernd.N
David,

when you cut out sentences inside my post, and also do not see it in the context of the left picture in my first post, then it does not show any more what I actually meant with that post. :)

Best, Bernd