<?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 Re: Generate Excel file From Tjava component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Generate-Excel-file-From-Tjava-component/m-p/2362707#M126783</link>
    <description>&lt;P&gt;Use a tJavaFlex for this. Prepare your data in the Start Code section. Open a loop in the Start Code (for or while). Then you can send your row data to your XML component in the Main Code section. The Main Code section is called once for every loop iteration. You can use that to go through your ArrayList and pass the values to your output row. In your End Code section, simply close the loop and carry out any tidy up code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jul 2018 12:19:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-20T12:19:45Z</dc:date>
    <item>
      <title>Generate Excel file From Tjava component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-Excel-file-From-Tjava-component/m-p/2362706#M126782</link>
      <description>&lt;P&gt;Want to generate excel file from tjava componnet contains Arraylist of headers , List of hashmap for data of excel file&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tjava component is as follows :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;List&amp;lt;String&amp;gt; headers = new ArrayList&amp;lt;String&amp;gt;();&lt;BR /&gt;headers.add("header1");&lt;BR /&gt;headers.add("header2");&lt;BR /&gt;headers.add("header3");&lt;/P&gt;
&lt;P&gt;List&amp;lt;HashMap&amp;lt;String, String&amp;gt;&amp;gt; rows = new ArrayList&amp;lt;HashMap&amp;lt;String,String&amp;gt;&amp;gt;();&lt;/P&gt;
&lt;P&gt;HashMap&amp;lt;String, String&amp;gt; row1 = new HashMap&amp;lt;String, String&amp;gt;();&lt;BR /&gt;row1.put("Header1","abc");&lt;BR /&gt;row1.put("header2","10");&lt;BR /&gt;row1.put("header3", "xyz");&lt;/P&gt;
&lt;P&gt;rows.add(row1);&lt;/P&gt;
&lt;P&gt;HashMap&amp;lt;String, String&amp;gt; row2 = new HashMap&amp;lt;String, String&amp;gt;();&lt;BR /&gt;row1.put("Header1","abcABC");&lt;BR /&gt;row1.put("header2","1010");&lt;BR /&gt;row1.put("header3", "xyzXYZ");&lt;/P&gt;
&lt;P&gt;rows.add(row2);&lt;BR /&gt;this.globalMap.put("headres", headers);&lt;BR /&gt;this.globalMap.put("rows", rows);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;need to create excel file as follows&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Header1&amp;nbsp; Header2 Header3&lt;/P&gt;
&lt;P&gt;abc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xyz&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;abcABC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1010&amp;nbsp; &amp;nbsp;xyzXYZ&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 07:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-Excel-file-From-Tjava-component/m-p/2362706#M126782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-20T07:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Excel file From Tjava component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-Excel-file-From-Tjava-component/m-p/2362707#M126783</link>
      <description>&lt;P&gt;Use a tJavaFlex for this. Prepare your data in the Start Code section. Open a loop in the Start Code (for or while). Then you can send your row data to your XML component in the Main Code section. The Main Code section is called once for every loop iteration. You can use that to go through your ArrayList and pass the values to your output row. In your End Code section, simply close the loop and carry out any tidy up code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 12:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-Excel-file-From-Tjava-component/m-p/2362707#M126783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-20T12:19:45Z</dc:date>
    </item>
  </channel>
</rss>

