<?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 Spreadsheet merge header row with body row in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Spreadsheet-merge-header-row-with-body-row/m-p/2236237#M25018</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is my first time here so I apologize if this is not the right place to ask this question.&amp;nbsp; I am looking for help to merge several rows into a single row in a spreadsheet.&amp;nbsp; Here is an example of the input and the desired output:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;InputFile.xlsx&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_f3cc5a.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9FR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139543i41D4861F9EBF0F22/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9FR.png" alt="0683p000009M9FR.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;OUTPUT.xlsx (or csv)&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Output" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9FW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156201iA1D81938AD8B26CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9FW.png" alt="0683p000009M9FW.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Output&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;What components can I use to split the header which is the company ID and Name then use the ID with each invoice that starts each row with "IN".&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any help or suggestion is much appreciated.&lt;/P&gt; 
&lt;P&gt;(using talend studio 7.2)&lt;/P&gt; 
&lt;P&gt;Thank you in advance.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:41:25 GMT</pubDate>
    <dc:creator>lec86042</dc:creator>
    <dc:date>2024-11-16T03:41:25Z</dc:date>
    <item>
      <title>Spreadsheet merge header row with body row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Spreadsheet-merge-header-row-with-body-row/m-p/2236237#M25018</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is my first time here so I apologize if this is not the right place to ask this question.&amp;nbsp; I am looking for help to merge several rows into a single row in a spreadsheet.&amp;nbsp; Here is an example of the input and the desired output:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;InputFile.xlsx&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_f3cc5a.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9FR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139543i41D4861F9EBF0F22/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9FR.png" alt="0683p000009M9FR.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;OUTPUT.xlsx (or csv)&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Output" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9FW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156201iA1D81938AD8B26CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9FW.png" alt="0683p000009M9FW.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Output&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;What components can I use to split the header which is the company ID and Name then use the ID with each invoice that starts each row with "IN".&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any help or suggestion is much appreciated.&lt;/P&gt; 
&lt;P&gt;(using talend studio 7.2)&lt;/P&gt; 
&lt;P&gt;Thank you in advance.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Spreadsheet-merge-header-row-with-body-row/m-p/2236237#M25018</guid>
      <dc:creator>lec86042</dc:creator>
      <dc:date>2024-11-16T03:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Spreadsheet merge header row with body row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Spreadsheet-merge-header-row-with-body-row/m-p/2236238#M25019</link>
      <description>Hi 
&lt;BR /&gt;To merge the company ID with the body content, my idea is to use one tFileInputExcel to read only the first two cells first, details: 
&lt;BR /&gt;tFileInputExcel--main(row1)--&amp;gt;tFlowToIterate--iterate--tJavaFlex--runIf--tFixedFlowInput--main--tHashOutput 
&lt;BR /&gt;on tJavaFlex: 
&lt;BR /&gt;in the begin part: 
&lt;BR /&gt;String c1=""; 
&lt;BR /&gt;in the main part: 
&lt;BR /&gt;c1=(String)globalMap.get("row1.c1"); 
&lt;BR /&gt;if(c1.startsWith("IN"){ 
&lt;BR /&gt;globalMap.put("writeData",true); 
&lt;BR /&gt;}else{ 
&lt;BR /&gt;globalMap.put("company_id",c1); 
&lt;BR /&gt;} 
&lt;BR /&gt; 
&lt;BR /&gt;Set the condition of runIf as: 
&lt;BR /&gt;(Boolean)globalMap.get("writeData") 
&lt;BR /&gt; 
&lt;BR /&gt;on tFixedFlowInput: generate the current flow with three columns: 
&lt;BR /&gt;company_id: (String)globalMap.get("company_id") 
&lt;BR /&gt;Document: IN 
&lt;BR /&gt;Type number: (String)globalMap.get("row1.c2") 
&lt;BR /&gt; 
&lt;BR /&gt;tHashOutput: write the data in memory for used later. In next subjob, you can read back the data using tHashInput. 
&lt;BR /&gt; 
&lt;BR /&gt;Hope it helps! 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jan 2020 09:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Spreadsheet-merge-header-row-with-body-row/m-p/2236238#M25019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-14T09:54:29Z</dc:date>
    </item>
  </channel>
</rss>

