<?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: Get Date Range in tMap component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-Date-Range-in-tMap-component/m-p/2227264#M18930</link>
    <description>Why don't you filter the data when you query the view?
&lt;BR /&gt;Nevertheless, you can put my code in the expression filter in tMap for the output.
&lt;BR /&gt;But where did you put yours ?</description>
    <pubDate>Wed, 11 Dec 2013 15:49:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-12-11T15:49:36Z</dc:date>
    <item>
      <title>Get Date Range in tMap component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Date-Range-in-tMap-component/m-p/2227261#M18927</link>
      <description>Hi,
&lt;BR /&gt;Currently I have designed one of the job where I am taking record from one of the view present on SQL server and putting into Mysql table. I need the data from 1st Jan 2013 to 31st Dec 2013. So, I have taken tMap and created one variable.
&lt;BR /&gt;I am using below condition to filter the data.
&lt;BR /&gt;row1.Defect_Reported_Detected_Date &amp;gt;= isDate("yyyy-mm-dd","2013-01-01") &amp;amp;&amp;amp;
&lt;BR /&gt;row1.Defect_Reported_Detected_Date &amp;lt;= isDate("yyyy-mm-dd","2013-12-31")
&lt;BR /&gt;My job design is tMSSQL_input--&amp;gt;tMap--&amp;gt;tMySQL_Output
&lt;BR /&gt;While running the job, I am getting error as "the method isDate(String,String) is undefined....."
&lt;BR /&gt;Please let me know the exact way of filtering data or is there any other component available. (excep tfileterrow. I have tried already)
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Sisir</description>
      <pubDate>Tue, 10 Dec 2013 10:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Date-Range-in-tMap-component/m-p/2227261#M18927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-10T10:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get Date Range in tMap component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Date-Range-in-tMap-component/m-p/2227262#M18928</link>
      <description>Try this :&lt;BR /&gt;&lt;PRE&gt;SimpleDateFormat ft = new SimpleDateFormat ("yyyy-MM-dd");&lt;BR /&gt;Date startDate = ft.parse("2013-01-01");&lt;BR /&gt;Date endDate = ft.parse("2014-01-01");&lt;BR /&gt;if ( row1.Defect_Reported_Detected_Date.compareTo(startDate) &amp;gt;= 0&lt;BR /&gt;&amp;amp;&amp;amp; row1.Defect_Reported_Detected_Date.compareTo(endDate) &amp;lt; 0 ) {&lt;BR /&gt;// do what you want&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Dec 2013 16:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Date-Range-in-tMap-component/m-p/2227262#M18928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-10T16:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get Date Range in tMap component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Date-Range-in-tMap-component/m-p/2227263#M18929</link>
      <description>Hi,
&lt;BR /&gt;Thanks for your quick response. I am restricting data coming from source system i.e one of the view in sql server. So, my source is sql server view. Through tMap I am trying to restrict. After mapping from source with target(MySQL) through tMap, I am using an expression where I have written the below code.
&lt;BR /&gt;row1.Defect_Reported_Detected_Date &amp;gt;= isDate("yyyy-mm-dd","2013-01-01") &amp;amp;&amp;amp;
&lt;BR /&gt;row1.Defect_Reported_Detected_Date &amp;lt;= isDate("yyyy-mm-dd","2013-mm-dd")
&lt;BR /&gt;Is it possible I can write the piece of code you sent, anywhere in tMAP?
&lt;BR /&gt;Also My purpose is to get 1 year data from source. I need to filter this out.
&lt;BR /&gt;Please let me know if any other method/component is available.
&lt;BR /&gt;
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Sisir</description>
      <pubDate>Wed, 11 Dec 2013 04:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Date-Range-in-tMap-component/m-p/2227263#M18929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-11T04:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get Date Range in tMap component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Date-Range-in-tMap-component/m-p/2227264#M18930</link>
      <description>Why don't you filter the data when you query the view?
&lt;BR /&gt;Nevertheless, you can put my code in the expression filter in tMap for the output.
&lt;BR /&gt;But where did you put yours ?</description>
      <pubDate>Wed, 11 Dec 2013 15:49:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Date-Range-in-tMap-component/m-p/2227264#M18930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-11T15:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get Date Range in tMap component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Date-Range-in-tMap-component/m-p/2227265#M18931</link>
      <description>Thanks.
&lt;BR /&gt;I restricted the data by modifying the query. Data was coming from SQL server view, and column used is 
&lt;BR /&gt;Defect Reported/Detected Date. So it was not recognizing. I managed to do that as below:
&lt;BR /&gt;WHERE YEAR()=YEAR(GETDATE())
&lt;BR /&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Sisir</description>
      <pubDate>Fri, 20 Dec 2013 08:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Date-Range-in-tMap-component/m-p/2227265#M18931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-20T08:47:57Z</dc:date>
    </item>
  </channel>
</rss>

