<?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: store the dynamic values in context variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2351782#M118364</link>
    <description>&lt;P&gt;Could you pls help me in steps&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jul 2018 15:07:12 GMT</pubDate>
    <dc:creator>Karuetl</dc:creator>
    <dc:date>2018-07-18T15:07:12Z</dc:date>
    <item>
      <title>store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2351780#M118362</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am beginner in Talend , So need help&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From the source&amp;nbsp;I have ID column and I need to store the max value&amp;nbsp; of ID into the context variable and use it in the query in the source in next run like as below&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;where clause as&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;where ID &amp;gt; "+context.Max_ID+"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please guide me how I can implement this&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 18:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2351780#M118362</guid>
      <dc:creator>Karuetl</dc:creator>
      <dc:date>2018-07-13T18:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2351781#M118363</link>
      <description>Have a look to tContexDump and tContextLoad components</description>
      <pubDate>Sat, 14 Jul 2018 07:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2351781#M118363</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-07-14T07:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2351782#M118364</link>
      <description>&lt;P&gt;Could you pls help me in steps&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 15:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2351782#M118364</guid>
      <dc:creator>Karuetl</dc:creator>
      <dc:date>2018-07-18T15:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2351783#M118365</link>
      <description>&lt;P&gt;Suppose you have a property file which contains the last&amp;nbsp;&lt;SPAN&gt;Max_ID you've queried:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;PRE&gt;Key;Value
Max_ID;100&lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN&gt;When the job starts, you can get the content from this file to populate your Max_ID context variable using tFileInputDelimited + tContextLoad components:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 279px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzIu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153373i4F61546B2CE09A5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzIu.png" alt="0683p000009LzIu.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Now you can use the current Max_ID value in your query where clause.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;From the result, you have to retrieve the new max value to update the&amp;nbsp;Max_ID variable (using a tJavaRow or something else).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Finally, use a tContextDump to dump all the context variables, tFilterRow to keep only the key "Max_ID" and tFileOutputDelimited to overwrite the initial property file with the new&amp;nbsp;Max_ID value:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 475px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzIz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138232i80B50EA384EC2400/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzIz.png" alt="0683p000009LzIz.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 16:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2351783#M118365</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-07-18T16:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2351784#M118366</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMjvAAG"&gt;@Karuetl&lt;/A&gt;&amp;nbsp;did this help you? If so, thank's to mark you case as Solved (Kudos also accepted)&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jul 2018 11:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2351784#M118366</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-07-21T11:59:58Z</dc:date>
    </item>
  </channel>
</rss>

