Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » FileChooser in RAP(Kepler Version)
FileChooser in RAP [message #1440364] Wed, 08 October 2014 09:20 Go to next message
marco giudici is currently offline marco giudiciFriend
Messages: 178
Registered: February 2013
Location: Italy
Senior Member
Hi all,
I have a problem with FileChooser in RAP client, it doesn't work instead in SWT client works fine.
I follow this tutorial
http://wiki.eclipse.org/Scout/HowTo/3.9/Add_FileChooser_support_for_RAP_UI

And my technology selection are:
index.php/fa/19424/0/

When I try to use FileChooser in RAP this is the result that I obtain
index.php/fa/19422/0/
index.php/fa/19423/0/

Anyone has any idea to help me solve this problem?

Thanks in advance for any help
Re: FileChooser in RAP [message #1440377 is a reply to message #1440364] Wed, 08 October 2014 09:31 Go to previous messageGo to next message
Matthias Nick is currently offline Matthias NickFriend
Messages: 197
Registered: August 2013
Senior Member
Hi Marco,

please override the following method in the filechooser:

getConfiguredTypeLoad() {
  return true;
}

[Updated on: Wed, 08 October 2014 09:31]

Report message to a moderator

Re: FileChooser in RAP [message #1440393 is a reply to message #1440377] Wed, 08 October 2014 09:59 Go to previous messageGo to next message
Matthias Nick is currently offline Matthias NickFriend
Messages: 197
Registered: August 2013
Senior Member
Note, with the RAP filechooser you can only upload files. Download is not possible as the javadoc says:

  /**
   * Load or Save
   * <ul>
   * <li><code>true</code> loads the file from the file system into the application.</li>
   * <li><code>false</code> saves the file from the application to the file system. Attention: This does not work in
   * RAP/Web-UI</li>
   * </ul>
   */
Re: FileChooser in RAP [message #1440396 is a reply to message #1440377] Wed, 08 October 2014 10:00 Go to previous message
marco giudici is currently offline marco giudiciFriend
Messages: 178
Registered: February 2013
Location: Italy
Senior Member
Hi Matthias,
I follow your suggestion and now it works but ask to me to select mandatory a filename.

index.php/fa/19425/0/

Is it possible set in a way that allows you to select only the folder?
You replay at this question with your last topic, don't consider that

[Updated on: Wed, 08 October 2014 10:22]

Report message to a moderator

Previous Topic:Lifecycle of a Form
Next Topic:getDataByText() for SmartFields with CodeTypes
Goto Forum:
  


Current Time: Tue Oct 17 20:30:05 GMT 2017

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

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