<?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: Global variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258518#M40293</link>
    <description>aranaudbroens&lt;BR /&gt;Here is the shot&lt;BR /&gt;&lt;A href="http://prntscr.com/9cujsq" rel="nofollow noopener noreferrer"&gt;http://prntscr.com/9cujsq&lt;/A&gt;</description>
    <pubDate>Fri, 11 Dec 2015 09:49:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-12-11T09:49:43Z</dc:date>
    <item>
      <title>Global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258512#M40287</link>
      <description>Hi
&lt;BR /&gt;I'm trying to download files from ftp from two folders: folder1 and folder2
&lt;BR /&gt;And store that files into local machine in their respective folders. In local machine, name of folders are same like folder1 and folder2
&lt;BR /&gt;Path of folders in local machine is C/Users/royDesktop/Talend At this location both both folders are there folder1 and folder2
&lt;BR /&gt;So for common path I have developed context variable and trying to add after any global variable.
&lt;BR /&gt;In child job, how can I call global variable with context variable in fields in tftpfilelist , tftpget components.
&lt;BR /&gt;Like this context.remotedirectory + folder1(how to define global variable here for different varable and keep changing while job run.)
&lt;BR /&gt;Is that possible to get values of these variable from parent job like I'm trying to do ?
&lt;BR /&gt;
&lt;BR /&gt;Parent JoB
&lt;BR /&gt;prntscr(dot)com/9ct9ea
&lt;BR /&gt;
&lt;BR /&gt;Child Job
&lt;BR /&gt;prntscr(dot)com/9cta50</description>
      <pubDate>Fri, 11 Dec 2015 06:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258512#M40287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T06:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258513#M40288</link>
      <description>Hi,
&lt;BR /&gt;In your parent, your tFlowToIterate generate global variable automaticaly (check option).
&lt;BR /&gt;So, keep your context variable with your path 'C/Users/royDesktop/Talend' and add a context variable 'folder_name' (default empty). These 2 context variable must be declarated on the parent job and the child job.
&lt;BR /&gt;In your parent job, on the tRunJob component, add a variable on parameter list 'folder_name' value globalMap.get("row2.name_of_the_folder_in_schema"))
&lt;BR /&gt;And, in the chlid use context path et context folder.
&lt;BR /&gt;Arnaud</description>
      <pubDate>Fri, 11 Dec 2015 08:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258513#M40288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T08:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258514#M40289</link>
      <description>Hi arnaudbroens&lt;BR /&gt;&lt;BR /&gt;Here is my parent job&lt;BR /&gt;&lt;BR /&gt;prntscr(dot)com/9cu21a&lt;BR /&gt;&lt;BR /&gt;Child Job&lt;BR /&gt;&lt;BR /&gt;prntscr(dot)com/9cu2ai&lt;BR /&gt;&lt;BR /&gt;Properties of components&lt;BR /&gt;&lt;BR /&gt;prntscr(dot)com/9cu2k5&lt;BR /&gt;prntscr(dot)com/9cu2or&lt;BR /&gt;prntscr(dot)com/9cu2uq&lt;BR /&gt;prntscr(dot)com/9cu314&lt;BR /&gt;Can you check please where am doing wrong ?</description>
      <pubDate>Fri, 11 Dec 2015 08:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258514#M40289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T08:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258515#M40290</link>
      <description>Roy,&lt;BR /&gt;In your tFlowToIterate1 check the option 'Use the default (key, value) in global variables'.&lt;BR /&gt;Screen me this component and tRunJob please.&lt;BR /&gt;Thanks,&lt;BR /&gt;Arnaud</description>
      <pubDate>Fri, 11 Dec 2015 09:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258515#M40290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T09:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258516#M40291</link>
      <description>arnaudbroens
&lt;BR /&gt;
&lt;BR /&gt;I have checked the default (key, value) in tflowtoiterate.
&lt;BR /&gt;
&lt;BR /&gt;Here is my trunjob properties&amp;nbsp;
&lt;BR /&gt;
&lt;A href="http://prntscr.com/9cu9su" rel="nofollow noopener noreferrer"&gt;http://prntscr.com/9cu9su&lt;/A&gt;
&lt;BR /&gt;And here is the error
&lt;BR /&gt;
&lt;BR /&gt;Exception in component tFTPFileList_1
&lt;BR /&gt;com.enterprisedt.net.ftp.FTPException: 550 /roy/null: No such file or directory
&lt;BR /&gt;at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:1201)</description>
      <pubDate>Fri, 11 Dec 2015 09:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258516#M40291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T09:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258517#M40292</link>
      <description>Roy,&lt;BR /&gt;Can you screen me this tFTPFileList_1 please ?&lt;BR /&gt;Thanks,&lt;BR /&gt;Arnaud</description>
      <pubDate>Fri, 11 Dec 2015 09:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258517#M40292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T09:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258518#M40293</link>
      <description>aranaudbroens&lt;BR /&gt;Here is the shot&lt;BR /&gt;&lt;A href="http://prntscr.com/9cujsq" rel="nofollow noopener noreferrer"&gt;http://prntscr.com/9cujsq&lt;/A&gt;</description>
      <pubDate>Fri, 11 Dec 2015 09:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258518#M40293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T09:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258519#M40294</link>
      <description>The options are ok. Can you put a tLogRow after tFixedFlowInput_1 to see data and write me the result please ?&lt;BR /&gt;Thanks,&lt;BR /&gt;Arnaud</description>
      <pubDate>Fri, 11 Dec 2015 10:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258519#M40294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T10:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258520#M40295</link>
      <description>Hey 
&lt;BR /&gt;here's the shot 
&lt;BR /&gt; 
&lt;A href="http://prntscr.com/9cuosp" rel="nofollow noopener noreferrer"&gt;http://prntscr.com/9cuosp&lt;/A&gt; 
&lt;BR /&gt;Don't know arnaudbroens, where am short in this job 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 11 Dec 2015 10:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258520#M40295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T10:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258521#M40296</link>
      <description>When I add&amp;nbsp; 
&lt;BR /&gt;context.remotedirectory+globalMap.get("remotedirectory") in remote directory filed in tftpfilelist it show error 
&lt;BR /&gt;Exception in component tFTPFileList_1 
&lt;BR /&gt;com.enterprisedt.net.ftp.FTPException: 550 /roy/null: No such file or directory 
&lt;BR /&gt;/roy/ : this path of ftp I have stored in context variable. And when I add /roy/+ global variable I have declared shows error 
&lt;BR /&gt;I'm trying to add use global variable with /roy/ path cos directory's folders could change automatically on every iteration from parent job. 
&lt;BR /&gt;Hope you understand what am looking for&amp;nbsp; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 11 Dec 2015 10:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258521#M40296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T10:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258522#M40297</link>
      <description>A&amp;nbsp;global variable works only in the current job. It's the reason why we put global variable value in a context.&lt;BR /&gt;However, the context variable must be declarated in your child job, isn't it ? Can you print me that please ?&lt;BR /&gt;Thanks,&lt;BR /&gt;Arnaud</description>
      <pubDate>Fri, 11 Dec 2015 10:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258522#M40297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T10:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258523#M40298</link>
      <description>hey arnaudbroens 
&lt;BR /&gt;For child job I have declared the context variable there 
&lt;BR /&gt;Like you see&amp;nbsp; 
&lt;BR /&gt; 
&lt;A href="http://prntscr.com/9cv287" target="_blank" rel="nofollow noopener noreferrer"&gt;http://prntscr.com/9cv287&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="http://prntscr.com/9cv25a" target="_blank" rel="nofollow noopener noreferrer"&gt;http://prntscr.com/9cv25a&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="http://prntscr.com/9cv22n" target="_blank" rel="nofollow noopener noreferrer"&gt;http://prntscr.com/9cv22n&lt;/A&gt; 
&lt;BR /&gt;Job is running, when I create separate subjobs in child job for every different folders seperately 
&lt;BR /&gt;For example 
&lt;BR /&gt;Child job 
&lt;BR /&gt;tftpconnection 
&lt;BR /&gt;| 
&lt;BR /&gt;tftpfilelist(context.remotedirectory)-----&amp;gt;tftpget(context.localdirectoryFolder1----filled in localdirectory) and (context.remotedirectoryFolder1----filled in remotedirectory) 
&lt;BR /&gt;| 
&lt;BR /&gt;tftpfilelist(context.remotedirectory)-----&amp;gt;tftpget(context.localdirectoryFolder2----filled in localdirectory) and (context.remotedirectoryFolder2----filled in remotedirectory) 
&lt;BR /&gt;But What I'm looking is 
&lt;BR /&gt;In child job I need like this 
&lt;BR /&gt;tftpconnection 
&lt;BR /&gt;| 
&lt;BR /&gt;tftpfilelist(context.remotedirectory)-----&amp;gt;tftpget(context.localdirectory+globalvariable(will iterate from parent job)----filled in localdirectory) and (context.remotedirectory+globalvariable(will iterate from parent job)----filled in remotedirectory) 
&lt;BR /&gt;SO that I don't need to create lot of sub jobs in child job for different different folders 
&lt;BR /&gt;Folder name value should come from parent job one by one and should be added to context variable I have defined dynamically. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 11 Dec 2015 10:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258523#M40298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T10:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258524#M40299</link>
      <description>Well, i think your job it's ok ! 
&lt;BR /&gt;1. The parent generate 2 values (for local and remote 
&lt;A href="http://prntscr.com/9cuosp)" rel="nofollow noopener noreferrer"&gt;http://prntscr.com/9cuosp)&lt;/A&gt;. 
&lt;BR /&gt;2. The parent give 2 parameters to the child (global variable be&amp;nbsp;transformed in context variable) 
&lt;A href="http://prntscr.com/9cu9su" rel="nofollow noopener noreferrer"&gt;http://prntscr.com/9cu9su&lt;/A&gt; 
&lt;BR /&gt;3. The parent call twice child 
&lt;BR /&gt;4. The child job use the context variable (in fact global variable from parent) 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tftpconnection&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;|&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tftpfilelist(context.remotedirectory)-----&amp;gt;tftpget(context.localdirectory+globalvariable(will iterate from parent job)----filled in localdirectory) and (context.remotedirectory+globalvariable(will iterate from parent job)----filled in remotedirectory)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;5. Execution : 2 transits in the child job 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tftpconnection&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;|&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tftpfilelist(context.remotedirectory)-----&amp;gt;tftpget(context.localdirectoryFolder1----filled in localdirectory) and (context.remotedirectoryFolder1----filled in remotedirectory)&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;|&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tftpfilelist(context.remotedirectory)-----&amp;gt;tftpget(context.localdirectoryFolder2----filled in localdirectory) and (context.remotedirectoryFolder2----filled in remotedirectory)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;It isn't the right way&amp;nbsp;?! 
&lt;BR /&gt;Arnaud</description>
      <pubDate>Fri, 11 Dec 2015 13:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258524#M40299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T13:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258525#M40300</link>
      <description>I want to do multiple subjob of step 5 in one subjob by passing global variable&lt;BR /&gt;Please check your message box....</description>
      <pubDate>Fri, 11 Dec 2015 14:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable/m-p/2258525#M40300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T14:31:17Z</dc:date>
    </item>
  </channel>
</rss>

