Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0029441 | Openbravo ERP | A. Platform | public | 2015-03-27 13:01 | 2015-03-31 00:07 |
|
Reporter | NaroaIriarte | |
Assigned To | NaroaIriarte | |
Priority | immediate | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR15Q2 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | Pre packaging ( pi ) |
Regression date | 2014-03-06 |
Regression introduced in release | pi |
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/d8ec9347e127febd5961acedac70ff0cfe52e5b6 [^] |
Triggers an Emergency Pack | No |
|
Summary | 0029441: Exporting to XLS does not work in the new ReportingUtils class |
Description | Trying to export a report in xls format using a module which uses the new code in the class "ReportingUtils", shows a casting error in the log. |
Steps To Reproduce | 1- Install the following module:
https://code.openbravo.com/erp/mods/org.openbravo.platform.features [^]
2- Follow the instructions in the following URL and create both PDF and a XLS report exporter buttons.
http://wiki.openbravo.com/wiki/How_to_create_a_Report_using_Process_Definition [^]
3- Go to F&B Admin and open the "Product Simple Report" window.
4- Click on the "Export to XLS" button.
5- An error of casting is shown in the log. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0029412 | | closed | NaroaIriarte | The ReportingUtils.java does not work properly. | related to | defect | 0029427 | | closed | NaroaIriarte | It is possible to modify the object of the enum class ExporType. | related to | feature request | 0026763 | | closed | gorkaion | Ability to launch reports from process definitions | caused by | defect | 0029157 | 3.0PR15Q2 | closed | alostale | code review issues for Process Definition Reporting Tool project |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2015-03-27 13:01 | NaroaIriarte | New Issue | |
2015-03-27 13:01 | NaroaIriarte | Assigned To | => NaroaIriarte |
2015-03-27 13:01 | NaroaIriarte | Modules | => Core |
2015-03-27 13:01 | NaroaIriarte | Triggers an Emergency Pack | => No |
2015-03-27 13:37 | NaroaIriarte | Relationship added | related to 0029412 |
2015-03-27 13:38 | NaroaIriarte | Relationship added | related to 0029427 |
2015-03-27 14:45 | NaroaIriarte | Priority | immediate => urgent |
2015-03-27 14:47 | NaroaIriarte | Review Assigned To | => alostale |
2015-03-27 14:47 | alostale | Relationship added | related to 0026763 |
2015-03-30 10:45 | alostale | Relationship added | caused by 0029157 |
2015-03-30 10:46 | alostale | Regression level | => Pre packaging ( pi ) |
2015-03-30 10:46 | alostale | Regression date | => 2014-03-06 |
2015-03-30 10:46 | alostale | Regression introduced in release | => pi |
2015-03-30 10:46 | alostale | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/d8ec9347e127febd5961acedac70ff0cfe52e5b6 [^] |
2015-03-30 10:46 | alostale | Priority | urgent => immediate |
2015-03-30 10:47 | hgbot | Checkin | |
2015-03-30 10:47 | hgbot | Note Added: 0076118 | |
2015-03-30 10:47 | hgbot | Status | new => resolved |
2015-03-30 10:47 | hgbot | Resolution | open => fixed |
2015-03-30 10:47 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/82682f61da0c0771cc348133d0a143369c32b8ca [^] |
2015-03-30 10:49 | alostale | Note Added: 0076119 | |
2015-03-30 10:49 | alostale | Status | resolved => closed |
2015-03-30 10:49 | alostale | Fixed in Version | => 3.0PR15Q2 |
2015-03-31 00:07 | hudsonbot | Checkin | |
2015-03-31 00:07 | hudsonbot | Note Added: 0076162 | |
Notes |
|
(0076118)
|
hgbot
|
2015-03-30 10:47
|
|
Repository: erp/devel/pi
Changeset: 82682f61da0c0771cc348133d0a143369c32b8ca
Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com>
Date: Fri Mar 27 14:02:59 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/82682f61da0c0771cc348133d0a143369c32b8ca [^]
Fixed issue 29441: It is not possible to export a report in XLS format.
Trying to export a report in XLS format, using the following module does not work:
https://code.openbravo.com/erp/mods/org.openbravo.platform.features [^]
It shows a casting error in the log. The problem is in the ReportingUtils class.
When it tries to export a report of XLS type, the variable "target" is type "File".
The problem is when the JRExporterParameter class of Jasper is used:
exportParameters.put(JRExporterParameter.OUTPUT_FILE_NAME, target);
The target needs to be of type "String" instead of "File" for the correct execution of
the code above.
To fix this the method "getAbsolutePath" of the "File" class has been called for getting
the absolute path which is what is needed, but having the type as "String" instead
of "File".
---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/report/ReportingUtils.java
---
|
|
|
|
|
|
|
|