Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Widget FileChooserField. Scout 11(How to configure to show /choose only directories?)
Widget FileChooserField. Scout 11 [message #1843549] Thu, 05 August 2021 13:35 Go to next message
Felix R is currently offline Felix RFriend
Messages: 22
Registered: January 2015
Junior Member
Hi,

is it possible to configure the widget FileChooserField to show and choose only directories?

tnank you
Felix
Re: Widget FileChooserField. Scout 11 [message #1843556 is a reply to message #1843549] Fri, 06 August 2021 07:03 Go to previous messageGo to next message
Beat Schwarzentrub is currently offline Beat SchwarzentrubFriend
Messages: 205
Registered: November 2010
Senior Member
Hi Felix

No, the file chooser widget does not currently offer this functionality. This is mainly due to browser restrictions: the <input type="file"> HTML element only allows uploading individual files, not entire folders.

We understand that browser manufacturers are experimenting with folder uploads. There is the webkitdirectory attribute that is supported by some modern browser engines. It seems to be working but is not an official standard yet, so the implementation may change any time in the future. We currently have no plans, to add this to the file chooser widget, but if you really need it, you could create your own widget.

Also note that the FileChooser has a property "multiSelect" that allows the user to upload multiple files at once. You have to start it from your own button or menu, since the FileChooserField only can hold a single file. There is a demo in the widgets app: FileChooserFieldForm.java#L438

Regards,
Beat
Re: Widget FileChooserField. Scout 11 [message #1843560 is a reply to message #1843556] Fri, 06 August 2021 09:50 Go to previous message
Felix R is currently offline Felix RFriend
Messages: 22
Registered: January 2015
Junior Member
Hi Beat,

thank you!

BR
Felix
Previous Topic:Return value from MSSQL stored procedure
Next Topic:Override Busy Indicator - Cancel action
Goto Forum:
  


Current Time: Fri Apr 19 01:52:15 GMT 2024

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

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

Back to the top