<?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: set a context variable and call it in next component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/set-a-context-variable-and-call-it-in-next-component/m-p/2288849#M62268</link>
    <description>&lt;P&gt;being new to Talend, what i have understood is standard variable i.e. ((String)globalMap.get("tFileList_1_CURRENT_FILE")); will return me with the file name and extention. i.e if the file name is abc.txt it will return abc.txt, what i need is a table to be created with the name abc , not abc.tc , with the standard variable the table is getting created but with the name "abc.txt".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so i thought doing a substring on the name and storing that in a variable and later using that for table name&lt;/P&gt;</description>
    <pubDate>Fri, 20 Apr 2018 08:53:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-20T08:53:03Z</dc:date>
    <item>
      <title>set a context variable and call it in next component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-a-context-variable-and-call-it-in-next-component/m-p/2288847#M62266</link>
      <description>&lt;P&gt;Hi I need to assign a context variable while the job is running and use the same context variable in the subsequent component. ,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;please check the&amp;nbsp;below flow for what my requirement is , tfilelist is the first component&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tfilelist--&amp;gt; tinputfiledelimited --&amp;gt;tjava --&amp;gt; tmysqloutput&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="flow.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lwti.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139215i0EC5C4E04F0CBC03/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lwti.png" alt="0683p000009Lwti.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;can someone help me with how I shall proceed ,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 07:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-a-context-variable-and-call-it-in-next-component/m-p/2288847#M62266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-20T07:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: set a context variable and call it in next component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-a-context-variable-and-call-it-in-next-component/m-p/2288848#M62267</link>
      <description>&lt;P&gt;tJava component is executed 1rst and only once for the subjob, so tJavaRow is better in this case.&lt;/P&gt;&lt;P&gt;The question is, why do you want to use a context variable as soon as you have a standard global variable which contains what you want?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 08:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-a-context-variable-and-call-it-in-next-component/m-p/2288848#M62267</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-04-20T08:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: set a context variable and call it in next component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-a-context-variable-and-call-it-in-next-component/m-p/2288849#M62268</link>
      <description>&lt;P&gt;being new to Talend, what i have understood is standard variable i.e. ((String)globalMap.get("tFileList_1_CURRENT_FILE")); will return me with the file name and extention. i.e if the file name is abc.txt it will return abc.txt, what i need is a table to be created with the name abc , not abc.tc , with the standard variable the table is getting created but with the name "abc.txt".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so i thought doing a substring on the name and storing that in a variable and later using that for table name&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 08:53:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-a-context-variable-and-call-it-in-next-component/m-p/2288849#M62268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-20T08:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: set a context variable and call it in next component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-a-context-variable-and-call-it-in-next-component/m-p/2288850#M62269</link>
      <description>&lt;P&gt;You can make the substitution when needed or use tJavaRow in your case (because of tJava behaviour described previously)&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 09:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-a-context-variable-and-call-it-in-next-component/m-p/2288850#M62269</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-04-20T09:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: set a context variable and call it in next component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-a-context-variable-and-call-it-in-next-component/m-p/2288851#M62270</link>
      <description>&lt;P&gt;the substitution can be made as follows :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;StringHandling.CHANGE(((String)globalMap.get("tFileList_1_CURRENT_FILE")),".txt","")&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;this worked for me as I directly put the above code in the table field.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;reference on&amp;nbsp;&lt;SPAN&gt;StringHandling Routines:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://help.talend.com/reader/mhqCkTBnin7IXmJBUJoocQ/5qboCU~1NO4j7aF9JtCWNg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/mhqCkTBnin7IXmJBUJoocQ/5qboCU~1NO4j7aF9JtCWNg&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 13:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-a-context-variable-and-call-it-in-next-component/m-p/2288851#M62270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-24T13:58:19Z</dc:date>
    </item>
  </channel>
</rss>

