<?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 How to add buffer row(s) to file based on column value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-buffer-row-s-to-file-based-on-column-value/m-p/2355380#M121145</link>
    <description>&lt;P&gt;I am trying to figure out how to go about converting a file with the following format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID     building     room      time&lt;/P&gt;&lt;P&gt;A       main          12          10:00&lt;/P&gt;&lt;P&gt;A       main          38           12:30&lt;/P&gt;&lt;P&gt;A       office         8             3:00&lt;/P&gt;&lt;P&gt;B       main          10           9:00&lt;/P&gt;&lt;P&gt;B       office         6             11:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;main          12          10:00&lt;/P&gt;&lt;P&gt;main          38          12:30&lt;/P&gt;&lt;P&gt;office         8            3:00&lt;/P&gt;&lt;P&gt;**********&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;main          10           9:00&lt;/P&gt;&lt;P&gt;office         6             11:00&lt;/P&gt;&lt;P&gt;**********&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to format this file with the id for each original row to be a 'leading' row, then display the next x number of rows for each id containing the schedule, and finally 10 asterisks as a row to separate the schedules of each id. The headers don't necessarily matter as they wont be included, but I need my data to be formatted in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:56:21 GMT</pubDate>
    <dc:creator>aba57870</dc:creator>
    <dc:date>2024-11-15T23:56:21Z</dc:date>
    <item>
      <title>How to add buffer row(s) to file based on column value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-buffer-row-s-to-file-based-on-column-value/m-p/2355380#M121145</link>
      <description>&lt;P&gt;I am trying to figure out how to go about converting a file with the following format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID     building     room      time&lt;/P&gt;&lt;P&gt;A       main          12          10:00&lt;/P&gt;&lt;P&gt;A       main          38           12:30&lt;/P&gt;&lt;P&gt;A       office         8             3:00&lt;/P&gt;&lt;P&gt;B       main          10           9:00&lt;/P&gt;&lt;P&gt;B       office         6             11:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;main          12          10:00&lt;/P&gt;&lt;P&gt;main          38          12:30&lt;/P&gt;&lt;P&gt;office         8            3:00&lt;/P&gt;&lt;P&gt;**********&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;main          10           9:00&lt;/P&gt;&lt;P&gt;office         6             11:00&lt;/P&gt;&lt;P&gt;**********&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to format this file with the id for each original row to be a 'leading' row, then display the next x number of rows for each id containing the schedule, and finally 10 asterisks as a row to separate the schedules of each id. The headers don't necessarily matter as they wont be included, but I need my data to be formatted in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-buffer-row-s-to-file-based-on-column-value/m-p/2355380#M121145</guid>
      <dc:creator>aba57870</dc:creator>
      <dc:date>2024-11-15T23:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to add buffer row(s) to file based on column value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-buffer-row-s-to-file-based-on-column-value/m-p/2355381#M121146</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000GiNQeAAN.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147541i08CC5DEF91A602DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000GiNQeAAN.jpg" alt="0695b00000GiNQeAAN.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000GiNYNAA3.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157396i616001C998193A99/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000GiNYNAA3.jpg" alt="0695b00000GiNYNAA3.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000GiNXyAAN.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129283iC8CC20302B9FCCFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000GiNXyAAN.jpg" alt="0695b00000GiNXyAAN.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000GiNXtAAN.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141602i266219195705017A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000GiNXtAAN.jpg" alt="0695b00000GiNXtAAN.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000GiNP2AAN.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144576i6306353787CA1871/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000GiNP2AAN.jpg" alt="0695b00000GiNP2AAN.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000GiNXoAAN.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138795i5FC670FF15238CCE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000GiNXoAAN.jpg" alt="0695b00000GiNXoAAN.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000GiNLyAAN.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135820i6FF3E91AAA5D19B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000GiNLyAAN.jpg" alt="0695b00000GiNLyAAN.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000GiNXeAAN.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146914iBA1987208B6DDD17/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000GiNXeAAN.jpg" alt="0695b00000GiNXeAAN.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000GiNXPAA3.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127838iE04A526C4C00E0C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000GiNXPAA3.jpg" alt="0695b00000GiNXPAA3.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 07:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-buffer-row-s-to-file-based-on-column-value/m-p/2355381#M121146</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-19T07:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to add buffer row(s) to file based on column value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-buffer-row-s-to-file-based-on-column-value/m-p/2355382#M121147</link>
      <description>&lt;P&gt;Hi, I use tfixedflowinput to simulate your file, you can use a tfileinput delimited with the same separator,&lt;/P&gt;&lt;P&gt;then I the first char of each row (A,B etc..) and the rest of the string witth substring,&lt;/P&gt;&lt;P&gt;I sorted the row by Id with tSortRow&lt;/P&gt;&lt;P&gt;then i denormalize the values to make a string array of the values for (A,B etc...)&lt;/P&gt;&lt;P&gt;I use a tflow to iterate , to iterate on A,B,C etc&lt;/P&gt;&lt;P&gt;then i use a trow generator to reatribuate the values in the iterate link.&lt;/P&gt;&lt;P&gt;Then i normalize the second column to make one row for each values wich are group y (A,B,C etc....)&lt;/P&gt;&lt;P&gt;then i use tjavaflex to format the string as the output you want.&lt;/P&gt;&lt;P&gt;And I stock everything in a globalMap here out.&lt;/P&gt;&lt;P&gt;Send me love and Kudos&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 07:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-buffer-row-s-to-file-based-on-column-value/m-p/2355382#M121147</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-19T07:58:47Z</dc:date>
    </item>
  </channel>
</rss>

