<?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 Append Header row to the existing excel file dynamically in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Append-Header-row-to-the-existing-excel-file-dynamically/m-p/2222533#M16103</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to add a header dynamically in my CSV file&lt;/P&gt; 
&lt;P&gt;below is my CSV File which i get after my mapping.In that first row will be added dynamically . FUEL should be taken from sheetname and system date and then the count of the row in output file&lt;/P&gt; 
&lt;P&gt;How can i achieve it?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Header.PNG" style="width: 919px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2X6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143055i54B5EA8A7E444308/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2X6.png" alt="0683p000009M2X6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:44:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T06:44:22Z</dc:date>
    <item>
      <title>Append Header row to the existing excel file dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Append-Header-row-to-the-existing-excel-file-dynamically/m-p/2222533#M16103</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to add a header dynamically in my CSV file&lt;/P&gt; 
&lt;P&gt;below is my CSV File which i get after my mapping.In that first row will be added dynamically . FUEL should be taken from sheetname and system date and then the count of the row in output file&lt;/P&gt; 
&lt;P&gt;How can i achieve it?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Header.PNG" style="width: 919px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2X6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143055i54B5EA8A7E444308/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2X6.png" alt="0683p000009M2X6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Append-Header-row-to-the-existing-excel-file-dynamically/m-p/2222533#M16103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Append Header row to the existing excel file dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Append-Header-row-to-the-existing-excel-file-dynamically/m-p/2222534#M16104</link>
      <description>&lt;P&gt;This needs a bit more of an explanation. You say you want a dynamic header, does that mean that the header will hold dynamic data or that you simply want it added after you have read the file? My assumption is that you simply want to take the filename and row count and add it to the top of the file. Is that correct? By the way, the sheet name of a CSV file viewed in Excel is the filename. If you post a screenshot of your job which gets you to this point (the file you've shown), I can point you in the right direction to achieve this if my assumption above is correct.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 14:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Append-Header-row-to-the-existing-excel-file-dynamically/m-p/2222534#M16104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-28T14:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Append Header row to the existing excel file dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Append-Header-row-to-the-existing-excel-file-dynamically/m-p/2222535#M16105</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Yes you are correct i need to add the file name and count of row to be added at the top of my file. as of now my flow is like&lt;BR /&gt;tFileInputExcel-&amp;gt;tMap-&amp;gt;tFileOutputDelimted. please guide me&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 669px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2d8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135800iE900BB3B0736CECC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2d8.png" alt="0683p000009M2d8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 06:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Append-Header-row-to-the-existing-excel-file-dynamically/m-p/2222535#M16105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-29T06:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Append Header row to the existing excel file dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Append-Header-row-to-the-existing-excel-file-dynamically/m-p/2222536#M16106</link>
      <description>Hi,&lt;BR /&gt;Can you explain me please</description>
      <pubDate>Tue, 29 Jan 2019 14:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Append-Header-row-to-the-existing-excel-file-dynamically/m-p/2222536#M16106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-29T14:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Append Header row to the existing excel file dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Append-Header-row-to-the-existing-excel-file-dynamically/m-p/2222537#M16107</link>
      <description>&lt;P&gt;OK, this is how I would do it.&lt;/P&gt; 
&lt;P&gt;You will need the tHashInput and tHashOutput components for this. If you do not have those available, you will need to find them. Take a look here for that...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/article/ka03p0000006EKdAAM" target="_blank"&gt;https://community.talend.com/t5/Migration-Configuration-and/Where-are-the-tHashInput-and-tHashOutput-components/ta-p/309&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Your job will look like below.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-01-29 at 20.03.06.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2Iy.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129203iF391A03C6E1BAA43/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2Iy.png" alt="0683p000009M2Iy.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The top subjob will be pretty much like yours is now, but you will replace the tFileOutputDelimited with a tHashOutput.&lt;/P&gt; 
&lt;P&gt;The next subjob uses a tFixedFlowInput with 2 columns. One for row count and one for file name. You can get the row count using a globalMap variable like this....&lt;/P&gt; 
&lt;PRE&gt;((Integer)globalMap.get("tFileInputExcel_1_NB_LINE"))&lt;/PRE&gt; 
&lt;P&gt;....check the name of your tFileInputExcel. Mine is called tFileInputExcel_1. Change the above variable key with the name of your component.&lt;/P&gt; 
&lt;P&gt;The filename you can get from however you specify the file for the component. If it is a variable, use that. If it is hardcoded, it will always be the same. I can't answer this bit for you without having your job.&lt;/P&gt; 
&lt;P&gt;This data needs to be written to your tFileOutputDelimited. It will be the first row.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The last subjob is where your data is added to the file. Simply link the tHashInput to the tHashOutput where you saved the data in memory above (the first subjob). Make sure the schema is that same as the tHashOutput. Then connect it to another copy of the tFileOutputDelimited. Make sure the schema of the tFileOutputDelimited is the same as the tHashInput. The ONLY change in the tFileOutputDelimited is that you must tick the "Append" tickbox.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If this is done correctly the first subjob will read the data into memory. The second subjob will write the row count and filename to the file. The third subjob will write the data stored in memory to the file after the row count and filename.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 20:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Append-Header-row-to-the-existing-excel-file-dynamically/m-p/2222537#M16107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-29T20:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Append Header row to the existing excel file dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Append-Header-row-to-the-existing-excel-file-dynamically/m-p/2222538#M16108</link>
      <description>&lt;P&gt;Thanks alot it works now.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 09:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Append-Header-row-to-the-existing-excel-file-dynamically/m-p/2222538#M16108</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-30T09:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Append Header row to the existing excel file dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Append-Header-row-to-the-existing-excel-file-dynamically/m-p/2222539#M16109</link>
      <description>&lt;P&gt;What did happen here? I dont see the answer in the blog.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 07:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Append-Header-row-to-the-existing-excel-file-dynamically/m-p/2222539#M16109</guid>
      <dc:creator>mpattnaik</dc:creator>
      <dc:date>2020-07-12T07:40:26Z</dc:date>
    </item>
  </channel>
</rss>

