Home
Analytics
Uploading to birt-spreadsheet-datasource plugin
wondermike
hi, I'm using the birt-spreadsheet-datasource plugin in version 3.7.1 and I'd like to upload files to the web-app. What I already have so far is the sub folder "sheets" and an XLS file in there. The only thing I need to know how would the ordinary user upload his XLS file (with a fixed file name of course, for now) to that directory? Is that possible inside a BIRT application?
In an ideal world, that user would upload the file, the filename would be appended to the report as a parameter and the report would take it and feed it to the plugin. How would one design such a mechanism?
Thanks for any suggestions.
Regards
Michael
Find more posts tagged with
Comments
CBR
Hi Michael,
i m the developer of that plugin. I m currently using the plugin in some similar way. The user is able to upload a excel file. Once the upload is done it executes a certain report.
You have to add a excel file upload servlet to the webabb. Are you using the webViewer or do you have integrated the Report engine into your own webapp? If you are using the Webviewer i can sent you the servlet code with some installation instructions.
Concerning your question:
Basically the servlet upload stores the excel file to that directory with a unique filename (the filename has to be unique because my app is used by multiple users at the same time and i do not want to introduce concurrency issues: one user overwrites excel file of another user because they are using the app at the same time) That unique filename is passed to the report as a parameter. The report is setting the filename using the property binding tab of the datasource (there you can set the filename using Rhino Script).
Do you mind sharing some informations with me? Just wanted to know in which context my plugin is used and if it has issues. I would be happy to know about that because i m planning to do some enhancements to it.
Thanks!
Christian
wondermike
Christian, I am using the Webviewer app, so it would be interesting to see the solution, sounds like it's exactly what I've been looking for. TIA for that. Unique filename sounds good, as in my environment there's also multiple users. Maybe it's some use to other users of your plugin to package such an example with the download for the plugin.<br />
<br />
<blockquote class='ipsBlockquote' data-author="'cbrell'" data-cid="101603" data-time="1338731361" data-date="03 June 2012 - 06:49 AM"><p>
Do you mind sharing some informations with me? Just wanted to know in which context my plugin is used and if it has issues. I would be happy to know about that because i m planning to do some enhancements to it.<br /></p></blockquote>
<br />
The environment is a Tomcat 5.5 / MySQL 5.0 running on a SLES server, as I said, an application constructed around the webviewer app. The application's purpose is to get information about a product's production steps, it displays the history of all steps.<br />
<br />
Concerning the issues, I've got one case where I have to add an extra line to a column of barcodes in order to read the last actual line in the report. See attachment with that workaround.<br />
<br />
Regards<br />
Michael
CBR
Hi Michael,
i ll upload the servlet code to my dropbox this evening (i m currently not at my dev box). Would you mind sharing a report and excel file demonstrating the issue (i want to fix it).
Thanks a lot for your suggestion. I think it is a good idea to share the servlet together with the plugin.
PS: Do you speak german (because of the Ende in the screenshot)?