Extend Column Display Type For Jasper Report by Attachment

Description

topic

Change:
extend   to add support for loading of attachment content.

 

xref:

Environment

v12

Attachments

2

Activity

Peter Takacs 
March 5, 2024 at 9:27 AM

Tested again on vanilla DB and works fine.

The first time I also started on vanilla iDempiere DB, but first I manually created a Test Jasper process with the Test_attachment.jrxml, then ran your 2Pack, then deleted my Test Jasper process, then started your Jasper Report Record Attachment Test process. Maybe that could cause the problem.

Heng Sin Low 
March 5, 2024 at 8:39 AM

hi ,

Are you testing this on a vanilla iDempiere DB ?

Perhaps your Test table has addition record with non-image attachment ?

Regards,

Low

Peter Takacs 
March 5, 2024 at 8:31 AM

Hi , I’ve imported the 2Pack - it created the jasper process also with the attachment, but when I run the process, I get the following error in the console:

org.adempiere.exceptions.AdempiereException: Failed to render report.

caused by: java.lang.RuntimeException: net.sf.jasperreports.engine.JRException: java.io.IOException: The byte array is not a recognized imageformat.

Here is the error stack trace:

Heng Sin Low 
March 1, 2024 at 5:58 AM

hi , please test and update here when your team has time to do so, thanks.

Heng Sin Low 
February 29, 2024 at 2:10 AM

Test Case:

Log in as System Administrator, pack in the following archive and run “Jasper Report Record Attachment Test”

 

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created February 25, 2024 at 7:57 PM
Updated May 2, 2024 at 12:02 PM
Resolved March 5, 2024 at 10:51 AM