<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Create for each iteration report file with tJasperReportExec, in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-for-each-iteration-report-file-with-tJasperReportExec/m-p/2437340#M140448</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I have a sql query which will give invoice numbers as result.&lt;/P&gt;
&lt;P&gt;How I can use iterate with&amp;nbsp;&amp;nbsp;tJasperReportExec so that I'll get for each invoice number a new pdf file?&lt;/P&gt;
&lt;P&gt;I am using the jrxml file which I created in Jasper Studio.&lt;/P&gt;
&lt;P&gt;At this file is another sql query stored.&lt;/P&gt;
&lt;P&gt;Do I have to edit the jrxml file and have to put my Talend context variable inside so that&amp;nbsp;tJasperReportExec can iterate it?&lt;/P&gt;
&lt;P&gt;Example modification to&amp;nbsp;jrxml, sql query part&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;queryString language="SQL"&amp;gt;
&amp;lt;![CDATA[
select 
a.invoice_no,
a.customer,
b.product,
b.amount
from sales_header a
inner join sales_line b on a.invoice_no = b.fk_invoice_no
where a.Status = 1
and a.No_='"context.talend_inv_no"']]&amp;gt;
&amp;lt;/queryString&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would be my talend job setup (see attched screenshot).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for any hints.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 11:33:00 GMT</pubDate>
    <dc:creator>pawe84</dc:creator>
    <dc:date>2024-04-03T11:33:00Z</dc:date>
    <item>
      <title>Create for each iteration report file with tJasperReportExec,</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-for-each-iteration-report-file-with-tJasperReportExec/m-p/2437340#M140448</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I have a sql query which will give invoice numbers as result.&lt;/P&gt;
&lt;P&gt;How I can use iterate with&amp;nbsp;&amp;nbsp;tJasperReportExec so that I'll get for each invoice number a new pdf file?&lt;/P&gt;
&lt;P&gt;I am using the jrxml file which I created in Jasper Studio.&lt;/P&gt;
&lt;P&gt;At this file is another sql query stored.&lt;/P&gt;
&lt;P&gt;Do I have to edit the jrxml file and have to put my Talend context variable inside so that&amp;nbsp;tJasperReportExec can iterate it?&lt;/P&gt;
&lt;P&gt;Example modification to&amp;nbsp;jrxml, sql query part&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;queryString language="SQL"&amp;gt;
&amp;lt;![CDATA[
select 
a.invoice_no,
a.customer,
b.product,
b.amount
from sales_header a
inner join sales_line b on a.invoice_no = b.fk_invoice_no
where a.Status = 1
and a.No_='"context.talend_inv_no"']]&amp;gt;
&amp;lt;/queryString&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would be my talend job setup (see attched screenshot).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for any hints.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 11:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-for-each-iteration-report-file-with-tJasperReportExec/m-p/2437340#M140448</guid>
      <dc:creator>pawe84</dc:creator>
      <dc:date>2024-04-03T11:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create for each iteration report file with tJasperReportExec,</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-for-each-iteration-report-file-with-tJasperReportExec/m-p/2437997#M140452</link>
      <description>&lt;P&gt;I solved this issue. You have to create parameters in your report designer.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 15:16:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-for-each-iteration-report-file-with-tJasperReportExec/m-p/2437997#M140452</guid>
      <dc:creator>pawe84</dc:creator>
      <dc:date>2024-04-04T15:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create for each iteration report file with tJasperReportExec,</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-for-each-iteration-report-file-with-tJasperReportExec/m-p/2440060#M140487</link>
      <description>&lt;P&gt;jrxml query also allows not only one value as parameter, you can also handover a list as value for a parameter which will converted into a "my_field in (....)" expression.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Example for an sql expression in jasper reports:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;select * from my_table where $X{IN, colname, parameter_name}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This works also if your list is empty and will not disrupts your query.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 08:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-for-each-iteration-report-file-with-tJasperReportExec/m-p/2440060#M140487</guid>
      <dc:creator>jlolling</dc:creator>
      <dc:date>2024-04-11T08:18:57Z</dc:date>
    </item>
  </channel>
</rss>

