<?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 [resolved]How to pass records to output based on a dynamic column value ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355812#M121484</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I have a requirement to output records with a certain column value which is dynamic.&lt;/P&gt;&lt;P&gt;ColA ColB ColC ColE&lt;/P&gt;&lt;P&gt; 1 A 09/15/2021 L&lt;/P&gt;&lt;P&gt; 2 B 09/15/2021 M&lt;/P&gt;&lt;P&gt; 3 C 09/15/2021 N&lt;/P&gt;&lt;P&gt; 4 D 09/15/2021 O&lt;/P&gt;&lt;P&gt; 5 E 09/14/2021 P&lt;/P&gt;&lt;P&gt; 6 F 09/14/2021 Q&lt;/P&gt;&lt;P&gt;Data is similar to the above table.I want all the records with date 09/15/2021 to output and I do not need rest of the data. In essence I need all the records with the date value in the first record.&lt;/P&gt;&lt;P&gt;I have experimented using tmemorizerows and tjavarow but it did not worked,&lt;/P&gt;&lt;P&gt;Can any one help me with the issue ? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Date field is not constant. It comes from a file and then I sort the data based on Date in descending order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tfileInputDelimited--&amp;gt;tSortorder(based on date)--&amp;gt;somecomponent--&amp;gt;Outputfile(which should have all the records for the top date field )&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:56:13 GMT</pubDate>
    <dc:creator>HemanthSai</dc:creator>
    <dc:date>2024-11-15T23:56:13Z</dc:date>
    <item>
      <title>[resolved]How to pass records to output based on a dynamic column value ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355812#M121484</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I have a requirement to output records with a certain column value which is dynamic.&lt;/P&gt;&lt;P&gt;ColA ColB ColC ColE&lt;/P&gt;&lt;P&gt; 1 A 09/15/2021 L&lt;/P&gt;&lt;P&gt; 2 B 09/15/2021 M&lt;/P&gt;&lt;P&gt; 3 C 09/15/2021 N&lt;/P&gt;&lt;P&gt; 4 D 09/15/2021 O&lt;/P&gt;&lt;P&gt; 5 E 09/14/2021 P&lt;/P&gt;&lt;P&gt; 6 F 09/14/2021 Q&lt;/P&gt;&lt;P&gt;Data is similar to the above table.I want all the records with date 09/15/2021 to output and I do not need rest of the data. In essence I need all the records with the date value in the first record.&lt;/P&gt;&lt;P&gt;I have experimented using tmemorizerows and tjavarow but it did not worked,&lt;/P&gt;&lt;P&gt;Can any one help me with the issue ? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Date field is not constant. It comes from a file and then I sort the data based on Date in descending order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tfileInputDelimited--&amp;gt;tSortorder(based on date)--&amp;gt;somecomponent--&amp;gt;Outputfile(which should have all the records for the top date field )&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355812#M121484</guid>
      <dc:creator>HemanthSai</dc:creator>
      <dc:date>2024-11-15T23:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved]How to pass records to output based on a dynamic column value ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355813#M121485</link>
      <description>&lt;P&gt;hi, if your field colB is a String you can use a tFilteRow component,&lt;/P&gt;&lt;P&gt;you Use advanced mode and in the texbox you can set :&lt;/P&gt;&lt;P&gt;"09/15/2021".equals(input_row.ColB)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Send me love and Kudos&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 12:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355813#M121485</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-19T12:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved]How to pass records to output based on a dynamic column value ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355814#M121486</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;It is not a string field. It is a date field and it is not constant.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 12:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355814#M121486</guid>
      <dc:creator>HemanthSai</dc:creator>
      <dc:date>2021-07-19T12:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved]How to pass records to output based on a dynamic column value ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355815#M121487</link>
      <description>&lt;P&gt;TalendDate.compareDate(input_row.ColB,TalendDate.parseDate("MM/dd/YYYY", "09/15/2021"),"MM/dd/YYYY")==0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 12:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355815#M121487</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-19T12:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved]How to pass records to output based on a dynamic column value ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355816#M121488</link>
      <description>&lt;P&gt;I cannot hardcode it, whatever the date that is in the first record, I need all the records for that date.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 12:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355816#M121488</guid>
      <dc:creator>HemanthSai</dc:creator>
      <dc:date>2021-07-19T12:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved]How to pass records to output based on a dynamic column value ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355817#M121489</link>
      <description>&lt;P&gt;you can read the file (just the first line) (you can set header,footer and limit in tfileinputdelimited)&lt;/P&gt;&lt;P&gt;then you stock it in a globalmap (you can use tSetGlobalVar component then you call it in the t filterRow :&lt;/P&gt;&lt;P&gt;TalendDate.compareDate(input_row.ColB,your globalvar,"MM/dd/YYYY")==0&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 13:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355817#M121489</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-19T13:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved]How to pass records to output based on a dynamic column value ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355818#M121490</link>
      <description>&lt;P&gt;then I need to load my input file two times right. For storing first record date I will set the limit to 1 and store that in tsetglobalvar. for filtering the data I need to load the input file again,because we had set the limit to 1. I do not want to load the twice. Job should look something like this&lt;/P&gt;&lt;P&gt;Input file--&amp;gt;sort data on date--&amp;gt;logic/component to filter all line items for date in first record--&amp;gt;output file&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 14:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355818#M121490</guid>
      <dc:creator>HemanthSai</dc:creator>
      <dc:date>2021-07-19T14:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved]How to pass records to output based on a dynamic column value ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355819#M121491</link>
      <description>&lt;P&gt;you can create a new globalmap named firstDate with null value:&lt;/P&gt;&lt;P&gt;then you add this a the top a tjavarow code  after push the synchronize button and generate code button:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if((Date)(globalMap.get("firstDate") ==null)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;globalMap.put("firstDate",input_row.colB);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;finally you can use tfilter row :&lt;/P&gt;&lt;P&gt;TalendDate.compareDate(input_row.ColB,(Date)(globalMap.get("firstDate"),"MM/dd/YYYY")==0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 14:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355819#M121491</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-19T14:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved]How to pass records to output based on a dynamic column value ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355820#M121492</link>
      <description>&lt;P&gt;Here in this logic &lt;/P&gt;&lt;P&gt;if((Date)(globalMap.get("firstDate") ==null)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;globalMap.put("firstDate",input_row.colB);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to store one value into the globalmap,it will store entire column.So I have tried something like this but it giving an error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if((Date)(globalMap.get("firstDate") ==null)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;globalMap.put("firstDate"&lt;B&gt;,input_row.colB[1])&lt;/B&gt;;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;My job is like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inputfile--&amp;gt;tsortrow--&amp;gt;tsetglobalvar--&amp;gt;tjavarow--&amp;gt;tfilerrows--&amp;gt;tlogrow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 08:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355820#M121492</guid>
      <dc:creator>HemanthSai</dc:creator>
      <dc:date>2021-07-20T08:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved]How to pass records to output based on a dynamic column value ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355821#M121493</link>
      <description>&lt;P&gt;your tjava row will be like this&lt;/P&gt;&lt;P&gt;if((Date)(globalMap.get("firstDate") ==null)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;globalMap.put("firstDate",input_row.colB);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;output_row.colA = input_row.colA;&lt;/P&gt;&lt;P&gt;output_row.colB = input_row.colB;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;output_row.colD= input_row.colD;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so when the first row pass it will read "firstDate" see it's a null value and set it with the date of the first row&lt;/P&gt;&lt;P&gt;then each next row will don't pass in the if cause firstDate is no more null &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tsetglobalvar--&amp;gt;on component ok--&amp;gt;inputfile--&amp;gt;tsortrow--&amp;gt;tjavarow--&amp;gt;tfilterrow--&amp;gt;tlogrow&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 12:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355821#M121493</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-20T12:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved]How to pass records to output based on a dynamic column value ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355822#M121494</link>
      <description>&lt;P&gt;that solved my issue jeremy thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 08:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355822#M121494</guid>
      <dc:creator>HemanthSai</dc:creator>
      <dc:date>2021-07-22T08:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved]How to pass records to output based on a dynamic column value ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355823#M121495</link>
      <description>&lt;P&gt;you're welcome, i'm happy it works &lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 08:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-records-to-output-based-on-a-dynamic-column/m-p/2355823#M121495</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-22T08:36:32Z</dc:date>
    </item>
  </channel>
</rss>

