<?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: possible to use tloop with dynamically changed variable for condition in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257254#M39401</link>
    <description>Hi pedro,&lt;BR /&gt;I have got the sql that using context variables working. But when I tried to use context in tLoop with the context variable assigned to a while loop condition. I got the Exception in component tLoop_1&lt;BR /&gt;java.lang.NullPointerException.&lt;BR /&gt;I am using:&lt;BR /&gt;dbInput-&amp;gt;tMap-&amp;gt;tContextLoad--(onComponentOk)--&amp;gt;tLoop-&amp;gt;tSleep.&lt;BR /&gt;I am using key: run_num, value:2 in the tContextLoad. In tLoop, i am using "i&amp;lt;context.run_num" as the condition.&lt;BR /&gt;I tried the same assignment with FileList. it works. I don't know why the above one doesn't work.&lt;BR /&gt;Any help is very apprecaited.&lt;BR /&gt;Thanks,</description>
    <pubDate>Mon, 23 Jul 2012 05:02:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-23T05:02:48Z</dc:date>
    <item>
      <title>possible to use tloop with dynamically changed variable for condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257247#M39394</link>
      <description>Hi, I am doing a development, which requires to run mulitiple time of a job. I am thinking to use tloop with While clause. However, the requirement is the condition is coming from a variable, which may be changed. I am wondering how to use the condition in tloop while clause. Also I am wondering how to pass a variable to the sql in tPostgresInput.
&lt;BR /&gt;Thanks,</description>
      <pubDate>Fri, 20 Jul 2012 02:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257247#M39394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-20T02:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: possible to use tloop with dynamically changed variable for condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257248#M39395</link>
      <description>Hi
&lt;BR /&gt;You might use tContextLoad and load it into a context variable.
&lt;BR /&gt;For more information, please download the document 
&lt;A href="http://www.talend.com/resources/documentation.php" target="_blank" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt; and get scenarios about this component.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 20 Jul 2012 02:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257248#M39395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-20T02:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: possible to use tloop with dynamically changed variable for condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257249#M39396</link>
      <description>Can the condition in tLoop take the conext varaible?</description>
      <pubDate>Fri, 20 Jul 2012 02:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257249#M39396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-20T02:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: possible to use tloop with dynamically changed variable for condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257250#M39397</link>
      <description>Hi&lt;BR /&gt;Yes. Of couse.&lt;BR /&gt;Let's say we have added a context variable called context.new1.&lt;BR /&gt;You can type it as the following image.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 20 Jul 2012 02:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257250#M39397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-20T02:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: possible to use tloop with dynamically changed variable for condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257251#M39398</link>
      <description>Hi&lt;BR /&gt;you suggested of using tContextLoad, which can load the properties of dbinput. I know how to make it works. My question is to enter variables in the Query, such as:&lt;BR /&gt;Select a.id&lt;BR /&gt;, a.registration&lt;BR /&gt;from comprehensive a&lt;BR /&gt;where a.registration_time between (context.time1) and (context.time2).&lt;BR /&gt;I would to know how to assign time1 and time2.&lt;BR /&gt;Thanks,</description>
      <pubDate>Fri, 20 Jul 2012 03:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257251#M39398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-20T03:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: possible to use tloop with dynamically changed variable for condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257252#M39399</link>
      <description>Hi&lt;BR /&gt;&lt;PRE&gt;"Select a.id&lt;BR /&gt;, a.registration&lt;BR /&gt;from comprehensive a&lt;BR /&gt;where a.registration_time between "+context.time1+" and "+context.time2&lt;/PRE&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 20 Jul 2012 03:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257252#M39399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-20T03:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: possible to use tloop with dynamically changed variable for condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257253#M39400</link>
      <description>Thanks a lot. It all works.</description>
      <pubDate>Fri, 20 Jul 2012 06:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257253#M39400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-20T06:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: possible to use tloop with dynamically changed variable for condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257254#M39401</link>
      <description>Hi pedro,&lt;BR /&gt;I have got the sql that using context variables working. But when I tried to use context in tLoop with the context variable assigned to a while loop condition. I got the Exception in component tLoop_1&lt;BR /&gt;java.lang.NullPointerException.&lt;BR /&gt;I am using:&lt;BR /&gt;dbInput-&amp;gt;tMap-&amp;gt;tContextLoad--(onComponentOk)--&amp;gt;tLoop-&amp;gt;tSleep.&lt;BR /&gt;I am using key: run_num, value:2 in the tContextLoad. In tLoop, i am using "i&amp;lt;context.run_num" as the condition.&lt;BR /&gt;I tried the same assignment with FileList. it works. I don't know why the above one doesn't work.&lt;BR /&gt;Any help is very apprecaited.&lt;BR /&gt;Thanks,</description>
      <pubDate>Mon, 23 Jul 2012 05:02:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257254#M39401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-23T05:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: possible to use tloop with dynamically changed variable for condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257255#M39402</link>
      <description>Hi&lt;BR /&gt;Please show me the entire error log.&lt;BR /&gt;Maybe the value didn't pass into context vairable by using tContextLoad.&lt;BR /&gt;You'd better check it.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Mon, 23 Jul 2012 05:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257255#M39402</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-23T05:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: possible to use tloop with dynamically changed variable for condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257256#M39403</link>
      <description>thanks for the quick reply. I found the error. It's a bug in my code. Thanks again.</description>
      <pubDate>Mon, 23 Jul 2012 05:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257256#M39403</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-23T05:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: possible to use tloop with dynamically changed variable for condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257257#M39404</link>
      <description>Hello,
&lt;BR /&gt;Does anyone knows how to read/parse a db table, for each record load fields in to the context variable, and execute subjob that uses these variables as parameters. Actually main problem is how to read fields from DBtable and store them in context variable. Also, how to save context variable in DBtable.
&lt;BR /&gt;Thanks in advance
&lt;BR /&gt;Zoran</description>
      <pubDate>Mon, 23 Jul 2012 23:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257257#M39404</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-23T23:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: possible to use tloop with dynamically changed variable for condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257258#M39405</link>
      <description>Hi
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hello,&lt;BR /&gt;Does anyone knows how to read/parse a db table, for each record load fields in to the context variable, and execute subjob that uses these variables as parameters. Actually main problem is how to read fields from DBtable and store them in context variable. Also, how to save context variable in DBtable.&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Zoran&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;This is related to 25195.
&lt;BR /&gt;Rergards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 24 Jul 2012 03:01:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257258#M39405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-24T03:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: possible to use tloop with dynamically changed variable for condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257259#M39406</link>
      <description>hi all,&lt;BR /&gt;it could be solution to read each line and iterate the flow to "something" ?&lt;BR /&gt;Seems like "for each line read data and do something with them".&lt;BR /&gt;&lt;PRE&gt;TDB_output -&amp;gt; flow to iterate -&amp;gt; tRunJob&lt;/PRE&gt;&lt;BR /&gt;use the globalMap instead context var.(don't have to use javarow by that way)&lt;BR /&gt;Even if i'm not a fan to pass flow's data with context variable to subJob .&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
      <pubDate>Tue, 24 Jul 2012 08:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/possible-to-use-tloop-with-dynamically-changed-variable-for/m-p/2257259#M39406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-24T08:05:23Z</dc:date>
    </item>
  </channel>
</rss>

