showFileOpenDialog with filter don't show directory

var file = plugins.file.showFileOpenDialog(0, plugins.file.getDesktopFolder(), false, new Array(“PDF and JPG”,“pdf”,“jpg”));

If I set selectionMode (first parameter) to 0 (both file and directory) with the filter above I can see only the file but no the directory.

If I set selectionMode (first parameter) to 2(directory only) with the filter above I can’t see nothing.

This with servoy 3.5.5 JDK 1.6.0_5

anyone can confirm this?

Yes! I can. I also found that to be very annoying. I think I also posted this here…

Please fix this one!

patrick:
Yes! I can. I also found that to be very annoying. I think I also posted this here…

Please fix this one!

Do you already submit this bug to the Support System?

No, please do…

Done!

That’s correct. The implementation was changed, so that the filter applies on files only. The change will be visible in the next release.

Regards,
Servoy Support

:D :D :D