<?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 value after every n counts in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-value-after-every-n-counts/m-p/2286295#M59917</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.out.println((Long)globalMap.get("tLoop_1_CURRENT_VALUE")); is returning NULL in tJava component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the tLoop value ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2019 16:18:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-29T16:18:46Z</dc:date>
    <item>
      <title>Get value after every n counts</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-value-after-every-n-counts/m-p/2286291#M59913</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I get the max(ID) from the table which is BigDecimal(7,0). This value I am passing to tJavaRow component to assign the value to globalMap as below:&lt;BR /&gt;globalMap.put("startID", "1");&lt;BR /&gt;globalMap.put("endID", String.valueOf(row1.maxID));&lt;BR /&gt;globalMap.put("rowsToProcess", "40000000" );&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;OnComponentOK, connecting to tLoop component where the For loop is chosen as below:&lt;/P&gt; 
&lt;P&gt;From - 1&lt;/P&gt; 
&lt;P&gt;To -&amp;nbsp;Integer.parseInt(globalMap.get("endID").toString())&lt;/P&gt; 
&lt;P&gt;Step -&amp;nbsp;Integer.parseInt(globalMap.get("rowsToProcess").toString())&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This raises NumberFormatException.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;java.lang.NumberFormatException: For input string: "4979013401".&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there any other way to generate value from start id to end id every n'th value.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 15:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-value-after-every-n-counts/m-p/2286291#M59913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-29T15:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get value after every n counts</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-value-after-every-n-counts/m-p/2286292#M59914</link>
      <description>&lt;P&gt;Max value for an integer is&amp;nbsp;&lt;SPAN&gt;2,147,483,647...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 16:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-value-after-every-n-counts/m-p/2286292#M59914</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-04-29T16:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get value after every n counts</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-value-after-every-n-counts/m-p/2286293#M59915</link>
      <description>&lt;P&gt;&lt;SPAN&gt;4979013401 is higher than above maximum possible value for Int&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Instead try Long but you have to use While Loop instead of For( doesnot support Long)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;start condition&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Long i = 0L&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 16:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-value-after-every-n-counts/m-p/2286293#M59915</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-04-29T16:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get value after every n counts</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-value-after-every-n-counts/m-p/2286294#M59916</link>
      <description>&lt;P&gt;Hi TRF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.out.println((Long)globalMap.get("tLoop_1_CURRENT_VALUE")); is returning NULL in tJava component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the tLoop value ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 16:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-value-after-every-n-counts/m-p/2286294#M59916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-29T16:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get value after every n counts</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-value-after-every-n-counts/m-p/2286295#M59917</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.out.println((Long)globalMap.get("tLoop_1_CURRENT_VALUE")); is returning NULL in tJava component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the tLoop value ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 16:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-value-after-every-n-counts/m-p/2286295#M59917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-29T16:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get value after every n counts</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-value-after-every-n-counts/m-p/2286296#M59918</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;System.out.println((Long)globalMap.get("tLoop_1_CURRENT_ITERATION"));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;globalMap.get("tLoop_1_CURRENT_ITERATION") is by default Integer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;int current_iteration_tLoop_1 = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would it transfer Long value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other way to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 16:22:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-value-after-every-n-counts/m-p/2286296#M59918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-29T16:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get value after every n counts</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-value-after-every-n-counts/m-p/2286297#M59919</link>
      <description>Hmm , If you need to use counter value in long&lt;BR /&gt;Immediately after tloop put a tjava and create a your own long globalmap&lt;BR /&gt;counter and use that custom value in your subjob&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Apr 2019 18:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-value-after-every-n-counts/m-p/2286297#M59919</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-04-29T18:07:13Z</dc:date>
    </item>
  </channel>
</rss>

