How to pick directory path from file system

Hey everybody,

I want to pick a directory from the local system and use that string in my application. Which component shall I use?

Can I use the FileUploadField for this? I dont want the user to be able to pick a file.

And in addition I would love to save that value in a persistent way, so if the screen opens the next time the value should still be there.

Thank you in advance.

Clemens

Hello, @hainmueller3530

There is no any component to do what you want in CUBA for the web client. Moreover, JavaScript doesn’t allow to choose a directory due to security restrictions. Only one way is to use SWFUpload. If you need some example, I’ll prepare it.

In case of desktop client you can use the JFileChooser component.

Regards,
Daniil.