Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014625Openbravo ERPA. Platformpublic2010-09-20 18:212010-12-09 16:06
networkb 
adrianromero 
urgentmajoralways
closedfixed 
5
2.50MP21 
2.50MP232.50MP23 
Core
No
0014625: It is not possible to see an image in a report using $P{BASE_WEB}+"/../utility/ShowImage?id=IMAGEID"
It is not possible to see an image in a report using $P{BASE_WEB}+"/../utility/ShowImage?id=IMAGEID"

- Reported by: XME
- Ticket: 9345
- As System Administrator go to Application Dictionary || Module
- Create a Template
- Go to Application Dictionary || Tables and Columns || Table
- Select m_product
- Select AD_Image_ID:
       - Reference: Image BLOB

- ant smartbuild
- restart tomcat

- AS openbravo Admin go to Master Data Management || Product
- Select Hammer and add an image.

- Change C_OrderJR.jrxml.
    --> image's propierties: $P{BASE_WEB}+"/../utility/ShowImage?id=96DAF4398CAE45C8A5E03769FD0AFEB2" (this is the ID of the image)

- Save
- ant smartbuild
- restart tomcat

- Go to Sales Management || Transactions || Sales Order
- Print a record
- Realize that the image does not appear
No tags attached.
related to defect 0014705 closed adrianromero Unable to print documents when accessing the system through localhost 
related to defect 0015161 closed migueldejuana When use the new showImage API in MP23 and no image id is found a green image is shown 
related to defect 00174243.0MP2 closed dalsasua Some reports can't be printed in PDF 
related to backport 00174252.50MP32 closed dalsasua Some reports can't be printed in PDF 
Issue History
2010-09-20 18:21networkbNew Issue
2010-09-20 18:21networkbAssigned To => adrianromero
2010-09-20 18:31networkbDescription Updatedbug_revision_view_page.php?rev_id=878#r878
2010-09-20 18:38albertobgIssue Monitored: albertobg
2010-09-21 09:37pjuvaraCategory07. Sales management => A. Platform
2010-09-24 17:54adrianromeroNote Added: 0031354
2010-09-27 12:59adrianromeroRelationship addedrelated to 0014705
2010-09-30 11:25hgbotCheckin
2010-09-30 11:25hgbotNote Added: 0031494
2010-09-30 11:25hgbotStatusnew => resolved
2010-09-30 11:25hgbotResolutionopen => fixed
2010-09-30 11:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/079e136502c9b31127c049383cc8c3b3bb56bf40 [^]
2010-09-30 11:26hgbotCheckin
2010-09-30 11:26hgbotNote Added: 0031496
2010-09-30 11:26hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/079e136502c9b31127c049383cc8c3b3bb56bf40 [^] => http://code.openbravo.com/erp/devel/pi/rev/f526d232f792c4f0c5ca2618feef92e602cb091d [^]
2010-09-30 11:26hgbotCheckin
2010-09-30 11:26hgbotNote Added: 0031498
2010-09-30 11:26hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/f526d232f792c4f0c5ca2618feef92e602cb091d [^] => http://code.openbravo.com/erp/devel/pi/rev/9e30454d56c459200018339b7d4909705494f89c [^]
2010-09-30 11:45adrianromeroNote Added: 0031507
2010-10-08 20:59hudsonbotCheckin
2010-10-08 20:59hudsonbotNote Added: 0031703
2010-10-08 20:59hudsonbotCheckin
2010-10-08 20:59hudsonbotNote Added: 0031705
2010-10-08 20:59hudsonbotCheckin
2010-10-08 20:59hudsonbotNote Added: 0031707
2010-11-15 08:09alostaleRelationship addedrelated to 0015161
2010-11-24 17:29psarobeStatusresolved => closed
2010-11-24 17:30psarobeFixed in Version => 2.50MP23
2010-12-09 16:06anonymoussf_bug_id0 => 3133479
2011-05-31 08:30jecharriRelationship addedrelated to 0017424
2011-05-31 08:31jecharriRelationship addedrelated to 0017425

Notes
(0031354)
adrianromero   
2010-09-24 17:54   
This is documented here: http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Concepts/Reports#Adding_images_and_logos_to_a_report [^]
(0031494)
hgbot   
2010-09-30 11:25   
Repository: erp/devel/pi
Changeset: 079e136502c9b31127c049383cc8c3b3bb56bf40
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Wed Sep 29 10:39:06 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/079e136502c9b31127c049383cc8c3b3bb56bf40 [^]

Fixes issue 0014625: It is not possible to see an image in a report using {BASE_WEB}+/../utility/ShowImage?id=IMAGEID
Fixes issue 0014705: Unable to print documents when accessing the system through localhost
It has been changed the way to include images in Jasper Reports adding an utility that includes directly an image without accessing to an URL

---
M src/org/openbravo/erpCommon/utility/ShowImage.java
M src/org/openbravo/erpCommon/utility/ShowImageLogo.java
M src/org/openbravo/erpCommon/utility/Utility.java
---
(0031496)
hgbot   
2010-09-30 11:26   
Repository: erp/devel/pi
Changeset: f526d232f792c4f0c5ca2618feef92e602cb091d
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Wed Sep 29 10:40:35 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f526d232f792c4f0c5ca2618feef92e602cb091d [^]

Fixes issue 0014625: It is not possible to see an image in a report using {BASE_WEB}+/../utility/ShowImage?id=IMAGEID
Fixes issue 0014705: Unable to print documents when accessing the system through localhost
It has been modified the required Jasper Reports to include images using the new way to include images without using an URL

---
M src/org/openbravo/erpReports/C_OrderJR.jrxml
M src/org/openbravo/erpReports/RptC_Invoice.jrxml
M src/org/openbravo/erpReports/RptC_OrderPO.jrxml
M src/org/openbravo/erpReports/RptM_InOut.jrxml
---
(0031498)
hgbot   
2010-09-30 11:26   
Repository: erp/devel/pi
Changeset: 9e30454d56c459200018339b7d4909705494f89c
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Wed Sep 29 12:08:23 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/9e30454d56c459200018339b7d4909705494f89c [^]

Fixes issue 0014625: It is not possible to see an image in a report using {BASE_WEB}+/../utility/ShowImage?id=IMAGEID
Fixes issue 0014705: Unable to print documents when accessing the system through localhost
Shipments report had an small issue that has been fixed in the reference to the Organization id parameter

---
M src/org/openbravo/erpReports/RptM_InOut.jrxml
---
(0031507)
adrianromero   
2010-09-30 11:45   
* Steps to test

It has to be verified that the logo is properly printed in the following PDFs you can access when pressing the button "print" in the following windows:

Sales Orders and Purchase Orders
Goods Shipments and Receive Goods
Sales Invoices and Purchase invoices

Read also the following document section http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Concepts/Reports#Adding_images_and_logos_to_a_report [^]

And verify in a PDF report that both functions:
org.openbravo.erpCommon.utility.Utility.showImage() and
org.openbravo.erpCommon.utility.Utility.showImageLogo()

Work properly in all cases documented invoked from a PDF report

* Other areas affected

The old method to access images has not been modified and continues working the same way. No other areas affected because this is a new method to retrieve application images.
(0031703)
hudsonbot   
2010-10-08 20:59   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/079e136502c9 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/f476e192559f [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18505.obx [^]
(0031705)
hudsonbot   
2010-10-08 20:59   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/f526d232f792 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/f476e192559f [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18505.obx [^]
(0031707)
hudsonbot   
2010-10-08 20:59   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/9e30454d56c4 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/f476e192559f [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18505.obx [^]