Export in Excel and Download a file [message #1440415] |
Wed, 08 October 2014 10:35 |
|
Hi all,
I have the need to export some data to Excel and I also the need to create a XML file, creating a file on the client pc.
How can I specify the destination folder in the RAP?
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>
*/
Thanks in advance for any help
[Updated on: Wed, 08 October 2014 10:37] Report message to a moderator
|
|
|
|
|
Re: Export in Excel and Download a file [message #1442004 is a reply to message #1440444] |
Fri, 10 October 2014 13:31 |
|
Hi Matthias,
Now I write the file to the server and return it to the client the server path where to find the file you just created.
I can create two different file: one is a xml file (xxxx.xml) and one is Excel file (xxxx.xlsx)
I visualize the full path in a link button, but now I would like that the user can click directly on this element to open the remote file.
Is this way possible or not? If yes, I can open Excel?
To open the xml file, I can use your suggestion (see below), correct?
Quote:
Alternatively you could try start the download automatically with the following method
org.eclipse.scout.rt.client.ui.desktop.AbstractDesktop.openUrlInBrowser(String)
I think you can use it this way
ClientSyncJob.getCurrentSession().getDesktop().openUrlInBrowser(url);
Thanks in advance for any help and explanation
[Updated on: Fri, 10 October 2014 13:33] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01911 seconds