<?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: [resolved] About the global variable NB_LINE in the component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-About-the-global-variable-NB-LINE-in-the-component/m-p/2364554#M128280</link>
    <description>Hi Wliu,
&lt;BR /&gt;Thanks for your information.
&lt;BR /&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
    <pubDate>Thu, 16 Oct 2014 04:57:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-10-16T04:57:23Z</dc:date>
    <item>
      <title>[resolved] About the global variable NB_LINE in the component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-About-the-global-variable-NB-LINE-in-the-component/m-p/2364553#M128279</link>
      <description>Something need to pay attention when you use globalMap.get("*_NB_LINE").
&lt;BR /&gt;eg, we have 2 global int variables: tFileInputDelimited_1_NB_LINE and tFileOutput_1_NB_LINE with the same value 125.
&lt;BR /&gt;
&lt;PRE&gt;((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE")) == ((Integer)globalMap.get("tFileOutputDelmited_1_NB_LINE"))&lt;/PRE&gt;
&lt;BR /&gt;The above expression will evaluate true. When the global int variable NB_LINE &amp;lt;=127, the above expression will evaluate true always.
&lt;BR /&gt;But when NB_LINE &amp;gt;=128, the above expression will evaluate false.
&lt;BR /&gt;Therefore, we'd better not using the above expression, here is suggestion to use the global variable as the following to avoid potential problems.
&lt;BR /&gt;
&lt;PRE&gt;((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE")).intValue() == ((Integer)globalMap.get("tFileOutputDeimited_1_NB_LINE")).intValue()&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Oct 2014 03:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-About-the-global-variable-NB-LINE-in-the-component/m-p/2364553#M128279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-16T03:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] About the global variable NB_LINE in the component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-About-the-global-variable-NB-LINE-in-the-component/m-p/2364554#M128280</link>
      <description>Hi Wliu,
&lt;BR /&gt;Thanks for your information.
&lt;BR /&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 16 Oct 2014 04:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-About-the-global-variable-NB-LINE-in-the-component/m-p/2364554#M128280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-16T04:57:23Z</dc:date>
    </item>
  </channel>
</rss>

