Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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 :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 config
in case the image did not show up here is 2 links for it
https://postimg.cc/Hjb8PGS4
https://ibb.co/SfRVMfs
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 config