Re: Jasper report

204 views
Skip to first unread message

Mahendar Reddy

unread,
Jul 13, 2023, 4:14:05 AM7/13/23
to iDempiere
I hace designed jasper report in jasper studio and preview is working succesfully,
but when i created process and attatched to print report, it is displaying as null
 Screenshot from 2023-07-13 13-38-35.pngScreenshot from 2023-07-13 13-43-48.png

Jesús Castillo

unread,
Jul 13, 2023, 7:40:47 AM7/13/23
to idem...@googlegroups.com
Hi,

Maybe it's a problem with parameters.
 
Atte: Jesus Castillo.

Mailtrack Remitente notificado con
Mailtrack
07/13/23, 07:37:56 AM

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/46e0cd2c-94d3-4d59-aa71-126a3a6288ccn%40googlegroups.com.

Mahendar Reddy

unread,
Jul 13, 2023, 8:14:41 AM7/13/23
to iDempiere
but it is woring in jasper soft view

Jesús Castillo

unread,
Jul 13, 2023, 9:04:09 AM7/13/23
to idem...@googlegroups.com
Ok, Well, no build the report is a common error, did you compile it? I look at the pic, and i see the jasper file. check that.
 
Atte: Jesus Castillo.

Mailtrack Remitente notificado con
Mailtrack
07/13/23, 09:02:21 AM

Alan Lescano

unread,
Jul 13, 2023, 9:19:43 AM7/13/23
to idem...@googlegroups.com
Hi, check the letter case of the filename.

Alan

--

Mahendar Reddy

unread,
Jul 14, 2023, 7:18:51 AM7/14/23
to iDempiere
when i hardcoded $P{C_Invoice_Id} report is generating,  it is not taking paramater value directlyScreenshot from 2023-07-14 16-45-46.pngScreenshot from 2023-07-14 16-47-56.png

Jesús Castillo

unread,
Jul 14, 2023, 8:16:22 AM7/14/23
to idem...@googlegroups.com
Hi, 

Check C_Invoice_ID parameter in the process definition, Check DB Column, It must be exactly the parameter name in the jasper report. 
For example, according your jasper, if DB Column is   C_Invoice_Id is a problem because the last D must be upper case.
 
Atte: Jesus Castillo.


Mailtrack Remitente notificado con
Mailtrack
07/14/23, 08:15:14 AM

Carlos Antonio Ruiz Gomez

unread,
Jul 14, 2023, 8:31:33 AM7/14/23
to idem...@googlegroups.com
If you are running the report from the Print button on Invoice window, then the parameter must be RECORD_ID


El 14/7/23 a las 13:18, Mahendar Reddy escribió:
when i hardcoded $P{C_Invoice_Id} report is generating,  it is not taking paramater value directly

Alejandro Jesus Guerra

unread,
Jul 14, 2023, 8:31:41 AM7/14/23
to idem...@googlegroups.com
Good morning, what type of data is ${C_Invoice_ID}?? 

Gaurav Sontakke

unread,
Jul 15, 2023, 11:30:53 AM7/15/23
to idem...@googlegroups.com
Hi 

In the jasper report its integer $P{C_Invoice_ID}

Regards 
Gaurav
Gaurav

Sent from my iPad

On 14 Jul 2023, at 3:31 PM, Alejandro Jesus Guerra <aguer...@gmail.com> wrote:



Mahendar Reddy

unread,
Jul 17, 2023, 3:03:47 AM7/17/23
to iDempiere
my queries is

Screenshot from 2023-07-17 12-14-53.png
main table query:-
Screenshot from 2023-07-17 12-16-45.png

child table query:Screenshot from 2023-07-17 12-16-14.png

mapped parameter Record_Id and invoice_id
Screenshot from 2023-07-17 12-18-21.png

in jasper studio preview it is working
Screenshot from 2023-07-17 12-19-38.png

created report and process in idempiere
Screenshot from 2023-07-17 12-30-41.png
Screenshot from 2023-07-17 12-31-37.png
created pint customization and added jasper report
Screenshot from 2023-07-17 12-27-11.pngScreenshot from 2023-07-17 12-28-30.png
in idempiere it is coming as empty paper but it is working in jasper studio

Mahendar Reddy

unread,
Jul 17, 2023, 3:24:25 AM7/17/23
to iDempiere
i had tried with this also, but this record id is not mapping witth child table, only main table is working

Carlos Antonio Ruiz Gomez

unread,
Jul 17, 2023, 4:54:38 AM7/17/23
to idem...@googlegroups.com
Record_ID must be in uppercase -> RECORD_ID
and type must be Integer


El 17/7/23 a las 9:24, Mahendar Reddy escribió:

Mahendar Reddy

unread,
Jul 17, 2023, 6:47:05 AM7/17/23
to iDempiere
i had changed to RECORD_ID, child table data is not rendering

Mahendar Reddy

unread,
Jul 17, 2023, 6:49:15 AM7/17/23
to iDempiere
this is my jrxml file, if any one can  help with this, please help!
mahe.jrxml

Diego Ruiz

unread,
Jul 17, 2023, 7:34:56 AM7/17/23
to iDempiere
If mahe.jasper is your subreport. 

Maje sure that the Subreport expression in the main report is: $P{SUBREPORT_DIR}+"mahe.jasper" (and the same for every subreport you have)

Regards,
Diego

Mahendar Reddy

unread,
Jul 17, 2023, 7:39:52 AM7/17/23
to iDempiere
i didnt understood, can you please explain briefly, im new to this

thanks
mahe

Diego Ruiz

unread,
Jul 17, 2023, 8:14:20 AM7/17/23
to iDempiere
In Jasper Studio make sure the master report is pointing to $P{SUBREPORT_DIR}+"mahe.jasper" instead of only mahe.jasper.


photo_2023-07-17_14-13-08.jpg


Regards,
Diego

Carlos Antonio Ruiz Gomez

unread,
Jul 17, 2023, 8:40:48 AM7/17/23
to idem...@googlegroups.com
Did you make it uppercase also in the child report?


El 17/7/23 a las 12:47, Mahendar Reddy escribió:

Mahendar Reddy

unread,
Jul 17, 2023, 8:43:16 AM7/17/23
to iDempiere
Screenshot from 2023-07-17 18-08-07.pngScreenshot from 2023-07-17 18-09-17.png

I am actually using just table element in main report itself. I am not using subreport. Sorry fairly new to to terms in jasper studio.

I am using RECORD_ID from main report in table element. Works fine in Jasper studio but not in idempiere application.

thanks
mahe

Mahendar Reddy

unread,
Jul 17, 2023, 9:03:06 AM7/17/23
to iDempiere
Screenshot from 2023-07-17 18-32-03.pngScreenshot from 2023-07-17 18-32-43.pngyes i kept same for table also
Reply all
Reply to author
Forward
0 new messages