<?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: Assign Context Variable from a DB fetch in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Assign-Context-Variable-from-a-DB-fetch/m-p/2315937#M86532</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;If you want to fetch a data from DB and assign it to context variable, it pretty simple in Talend too.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 877px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M671.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144936iCF0902AC98932771/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M671.png" alt="0683p000009M671.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you want to pass to another job, that is also pretty easy. You can use a tRunJob component to call another job and select the option to pass the context variables.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2019 15:11:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-03T15:11:54Z</dc:date>
    <item>
      <title>Assign Context Variable from a DB fetch</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assign-Context-Variable-from-a-DB-fetch/m-p/2315935#M86530</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In an audit table that captures run statistics of all the jobs running in a batch, i want to populate a column BatchID and i want this value to be a incremental running sequence. For this, every time i run the job i want to fetch the max value of the existing BatchID from this table and +1 and populate that value (i don't want to use DB identity property for this for all the known reasons).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My thought process is, have a context variable nxt_batch_id (integer) and have the Implicit contextLoad enabled at the job level, so that I can write the query select max(batchID) from audit_table.&lt;/P&gt;
&lt;P&gt;I am not sure if i am conceptually doing anything wrong...can you please let me know if i am moving away from the way it needs to be done or where am i going wrong. As i am not great at Java trying to achieve this through DB queries vs writing custom code.&lt;/P&gt;
&lt;P&gt;Please see the attachments&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assign-Context-Variable-from-a-DB-fetch/m-p/2315935#M86530</guid>
      <dc:creator>tnewbie</dc:creator>
      <dc:date>2024-11-16T05:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Context Variable from a DB fetch</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assign-Context-Variable-from-a-DB-fetch/m-p/2315936#M86531</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Can someone please help with the request "&lt;SPAN&gt;Assign Context Variable from a DB fetch"&lt;/SPAN&gt;...&lt;/P&gt;
&lt;P&gt;Simply put all i want to know is, how to fetch a value from DB and pass it over to a parameter in TalenD and use that parameter in the process flow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is certainly a kids play in all other popular tools i have worked with, but being new to TalenD and non-java resource and owing to tool complexities, i am seeking help on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 14:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assign-Context-Variable-from-a-DB-fetch/m-p/2315936#M86531</guid>
      <dc:creator>tnewbie</dc:creator>
      <dc:date>2019-07-03T14:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Context Variable from a DB fetch</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assign-Context-Variable-from-a-DB-fetch/m-p/2315937#M86532</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;If you want to fetch a data from DB and assign it to context variable, it pretty simple in Talend too.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 877px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M671.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144936iCF0902AC98932771/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M671.png" alt="0683p000009M671.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you want to pass to another job, that is also pretty easy. You can use a tRunJob component to call another job and select the option to pass the context variables.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assign-Context-Variable-from-a-DB-fetch/m-p/2315937#M86532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-03T15:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Context Variable from a DB fetch</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assign-Context-Variable-from-a-DB-fetch/m-p/2315938#M86533</link>
      <description>&lt;P&gt;Thanks Nikhil...for your response&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I guess your approach holds good if i have a tjava component...In my case where i am fetching a seq. number from a table and use that parameter/context value across the board, I guess using job level &lt;STRONG&gt;select&lt;/STRONG&gt; approach is appropriate...can u pls check the attachment...for ur quick review i have marked areas to be looked into in &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;red&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;PleaseNote: &lt;/STRONG&gt;I am trying to avoid a dummy pipeline like tdbinput --&amp;gt; tjavaRow because i am trying to build a reusable component and if i go the tjava route, i will end doing it in all the 100+jobs which I guess is a avoidable overhead&lt;/FONT&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lvzv"&gt;param value from db fetch.png&lt;/A&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assign-Context-Variable-from-a-DB-fetch/m-p/2315938#M86533</guid>
      <dc:creator>tnewbie</dc:creator>
      <dc:date>2019-07-03T15:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Context Variable from a DB fetch</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assign-Context-Variable-from-a-DB-fetch/m-p/2315939#M86534</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please look into this issue...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 17:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assign-Context-Variable-from-a-DB-fetch/m-p/2315939#M86534</guid>
      <dc:creator>tnewbie</dc:creator>
      <dc:date>2019-07-03T17:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Context Variable from a DB fetch</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assign-Context-Variable-from-a-DB-fetch/m-p/2315940#M86535</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; If you want to create a reusable way of capturing the job execution statistics, why are you creating a new set of job design? You can very well use the Talend Activity monitoring Console (AMC) for this activity.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://talendpnp.github.io/architecture-center/reference-architecture/summer-2018-7.0/talend-components/talend-activity-monitoring-console" target="_blank" rel="nofollow noopener noreferrer"&gt;https://talendpnp.github.io/architecture-center/reference-architecture/summer-2018-7.0/talend-components/talend-activity-monitoring-console&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.talend.com/resources/data-integration-amc-studio-features/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talend.com/resources/data-integration-amc-studio-features/&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 02:18:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assign-Context-Variable-from-a-DB-fetch/m-p/2315940#M86535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-04T02:18:00Z</dc:date>
    </item>
  </channel>
</rss>

