|
|
|
|
Re: File Chooser and Upload for RAP UI [message #1006062 is a reply to message #1005897] |
Tue, 29 January 2013 16:53 |
Urs Beeli Messages: 573 Registered: October 2012 Location: Bern, Switzerland |
Senior Member |
|
|
I solved my problem by installing the missing RAP SDK in my eclipse. The FileChooserField in forms works now nicely in RAP. Using a FileChooser instance directly in the following way does not work, however:
File folder = new File(getDefaultFolder());
FileChooser.setCurrentDirectory(getDefaultFolder());
String filename = "Portrait*.*";
FileChooser chooser = new FileChooser(folder, new String[]{"png", "jpg", "gif", "bmp", "*"}, true);
chooser.setFileName(filename);
File[] files = chooser.startChooser();
Is there any way to make the above code work in RAP? If not, I can probably work around it.
|
|
|
Powered by
FUDForum. Page generated in 0.02608 seconds