Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015161Openbravo ERPA. Platformpublic2010-11-11 12:552012-04-26 12:25
albertobg 
migueldejuana 
normalminoralways
closedout of date 
5
2.50MP23 
pi 
Core
No
0015161: When use the new showImage API in MP23 and no image id is found a green image is shown
When we use the new ShowImage API introduced in the MP23 release, using the expression org.openbravo.erpCommon.utility.Utility.showImage("IMAGEID"), if "IMAGEID" is null, the showImage object returns an awt.image object completely green.

We will solved this issue using the expression:
($F{IDIMATGE} == null || $F{IDIMATGE}.length() == 0) ? null : org.openbravo.erpCommon.utility.Utility.showImage($F{IDIMATGE})
And selection the option On error -> Blank of the ireport's image object.
-Create a report and put an image object using the expression org.openbravo.erpCommon.utility.Utility.showImage($F{IDIMATGE})
-Print report for a data set that returns a null in the field IDIMATGE
No tags attached.
related to defect 00146252.50MP23 closed adrianromero It is not possible to see an image in a report using $P{BASE_WEB}+"/../utility/ShowImage?id=IMAGEID" 
Issue History
2010-11-11 12:55albertobgNew Issue
2010-11-11 12:55albertobgAssigned To => alostale
2010-11-11 12:56albertobgIssue Monitored: albertobg
2010-11-15 08:09alostaleRelationship addedrelated to 0014625
2010-11-15 08:09alostaleStatusnew => scheduled
2010-11-15 08:09alostaleAssigned Toalostale => adrianromero
2010-11-15 08:09alostalefix_in_branch => pi
2011-06-03 10:58dalsasuaAssigned Toadrianromero => dalsasua
2011-07-20 18:13dalsasuaAssigned Todalsasua => jonalegriaesarte
2012-04-03 12:20jonalegriaesarteAssigned Tojonalegriaesarte => vmromanos
2012-04-10 13:44vmromanosAssigned Tovmromanos => alostale
2012-04-24 14:58alostaleAssigned Toalostale => migueldejuana
2012-04-26 12:25migueldejuanaNote Added: 0048010
2012-04-26 12:25migueldejuanaStatusscheduled => closed
2012-04-26 12:25migueldejuanaResolutionopen => out of date
2012-04-26 12:25migueldejuanaFixed in Version => pi

Notes
(0048010)
migueldejuana   
2012-04-26 12:25   
Working fine in current pi@86fe6f8c5c29