Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0035087 | Openbravo ERP | A. Platform | public | 2017-01-30 17:23 | 2017-03-15 20:18 | |||||||
| Reporter | vmromanos | |||||||||||
| Assigned To | caristu | |||||||||||
| Priority | normal | Severity | minor | Reproducibility | always | |||||||
| Status | closed | Resolution | fixed | |||||||||
| Platform | OS | 5 | OS Version | |||||||||
| Product Version | ||||||||||||
| Target Version | Fixed in Version | 3.0PR17Q2 | ||||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | alostale | |||||||||||
| OBNetwork customer | No | |||||||||||
| Web browser | ||||||||||||
| Modules | Core | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0035087: ReportingUtils should have a public getBaseDesign() method | |||||||||||
| Description | In BaseReportActionHandler there is the possibility to override getReportTemplatePath() method to provide a custom JRXML template path. However there is no easy way to recover the @basedesign@ that must be concatenated before the JRXML path. Example: @basedesign@: /src-loc/design jrxml path: /org/openbravo/erpCommon/ad_reports/AgingScheduleHTML.jrxml returned by getReportTemplatePath(): /src-loc/design/org/openbravo/erpCommon/ad_reports/AgingScheduleHTML.jrxml A public static method called getBaseDesign() in ReportingUtils should be created to return the @basedesign@, in the example /src-loc/design | |||||||||||
| Steps To Reproduce | NA | |||||||||||
| Proposed Solution | In ReportingUtils: public static String getBaseDesign() { ServletContext servletContext = DalContextListener.getServletContext(); ConfigParameters configParameters = ConfigParameters.retrieveFrom(servletContext); String base = configParameters.strBaseDesignPath; String design = configParameters.strDefaultDesignPath; if (!base.startsWith("/")) { base = "/" + base; } return base + "/" + design; } private static String getBaseDesignPath() { ServletContext servletContext = DalContextListener.getServletContext(); return servletContext.getRealPath(getBaseDesign()); } (see attached file) | |||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships |
| |||||||||||
| Attached Files | https://issues.openbravo.com/file_download.php?file_id=10356&type=bug | |||||||||||
| Issue History | ||||||||||||
| Date Modified | Username | Field | Change | |||||||||
| 2017-01-30 17:23 | vmromanos | New Issue | ||||||||||
| 2017-01-30 17:23 | vmromanos | Assigned To | => caristu | |||||||||
| 2017-01-30 17:23 | vmromanos | File Added: reportingutils.diff | ||||||||||
| 2017-01-30 17:23 | vmromanos | OBNetwork customer | => No | |||||||||
| 2017-01-30 17:23 | vmromanos | Modules | => Core | |||||||||
| 2017-01-30 17:23 | vmromanos | Triggers an Emergency Pack | => No | |||||||||
| 2017-01-30 17:25 | vmromanos | Summary | ReportingUtils should have a public getBaseDesignPath() method => ReportingUtils should have a public getBaseDesign() method | |||||||||
| 2017-01-30 17:25 | vmromanos | Description Updated | bug_revision_view_page.php?rev_id=14395#r14395 | |||||||||
| 2017-01-31 08:54 | vmromanos | Relationship added | blocks 0035089 | |||||||||
| 2017-01-31 09:17 | hgbot | Checkin | ||||||||||
| 2017-01-31 09:17 | hgbot | Note Added: 0093955 | ||||||||||
| 2017-01-31 09:17 | hgbot | Status | new => resolved | |||||||||
| 2017-01-31 09:17 | hgbot | Resolution | open => fixed | |||||||||
| 2017-01-31 09:17 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/a71a3822d5e5a15d62daa038c38004c98414b0a0 [^] | |||||||||
| 2017-01-31 09:19 | caristu | Review Assigned To | => alostale | |||||||||
| 2017-02-03 08:41 | alostale | Note Added: 0094025 | ||||||||||
| 2017-02-03 08:41 | alostale | Status | resolved => closed | |||||||||
| 2017-02-03 08:41 | alostale | Fixed in Version | => 3.0PR17Q2 | |||||||||
| 2017-03-15 20:18 | hudsonbot | Checkin | ||||||||||
| 2017-03-15 20:18 | hudsonbot | Note Added: 0095147 | ||||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||