Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
aminegac
Creator
Creator

tJasperOutputExchange null params problem fix ?

hello,

with a lot of effort, i could finally make TjasperOutputExchange component outputs pdfs successfully ,now the problem is that I want to show emails in each pdf created but it shows null in every pdf created. i added email as field and email as param in a very basic Report ,where It works perfectly in Ireport 3.7.5 . now the problem is that when those pdf are created by the TjasperOutput component the emails are both shown as null .

my scenario is that i have iterations on a list of persons , i want to create for each person a PDF file and pass his email in the jasper so that the pdf becomes dynamic for each person it shows its specific email .

the main problem that i want to fix is why the Tjasper component creates the files but does not write the params passed although the Tjasper component reads well the input emails because as you can see in the image below , it created a temporary XML file with the correct data in it already ! so why the component did not make the good mapping or whatever to show the dynamic param in the PDF output ! !?

N.B: i used a specific query trick in the report when building my jasper , which i found here https://community.talend.com/s/question/0D53p00007vCr2PCAS/tjasperreportexec-with-xml-input-file

the jasper report component i used is from this

link in exchange store :

https://cutt.ly/OEypz7E

0695b00000If5hYAAR.png

Talend OS 4 yrs / Java 17 Web Dev
Labels (4)
1 Solution

Accepted Solutions
aminegac
Creator
Creator
Author

I solved this, it was by properly setting up the XPath query in iReport; you have to enter an xml file for example by which TJasperOutPutExchange create a temporary xml file to convert it into pdf so for the pdf report it expects a DATASOURCE in xml with very precise diagrams so that it performs the conversion properly. here is an image launch the config0695b00000IfTlFAAV.png

Talend OS 4 yrs / Java 17 Web Dev

View solution in original post

2 Replies
aminegac
Creator
Creator
Author

in case the image did not show up here is 2 links for it

https://postimg.cc/Hjb8PGS4

https://ibb.co/SfRVMfs

Talend OS 4 yrs / Java 17 Web Dev
aminegac
Creator
Creator
Author

I solved this, it was by properly setting up the XPath query in iReport; you have to enter an xml file for example by which TJasperOutPutExchange create a temporary xml file to convert it into pdf so for the pdf report it expects a DATASOURCE in xml with very precise diagrams so that it performs the conversion properly. here is an image launch the config0695b00000IfTlFAAV.png

Talend OS 4 yrs / Java 17 Web Dev