<?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: How to insert tfilelist variable in table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-tfilelist-variable-in-table/m-p/2347586#M114804</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt;thank you for your help.&lt;BR /&gt;&lt;BR /&gt;I did what you say but the output was null for all columns.&lt;BR /&gt;&lt;BR /&gt;Am I doing something wrong?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sem Título.png" style="width: 806px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lrob.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148555iB134E0FD54182208/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lrob.png" alt="0683p000009Lrob.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2017 10:26:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-28T10:26:07Z</dc:date>
    <item>
      <title>How to insert tfilelist variable in table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-tfilelist-variable-in-table/m-p/2347584#M114802</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm Using a tFileList and a tFileInputPositional to read files from some subfolders and Insert the data in a sql table.&lt;BR /&gt;&lt;BR /&gt;I would like to insert also in the sql table a new column with the folder name (given by the tFileList).&lt;BR /&gt;&lt;BR /&gt;How can I do that?&lt;BR /&gt;&lt;BR /&gt;I leave you with a print of my job:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sem Título.png" style="width: 652px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lrjm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143981i8DD822A90235617A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lrjm.png" alt="0683p000009Lrjm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Miguel Cunha&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 09:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-tfilelist-variable-in-table/m-p/2347584#M114802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T09:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert tfilelist variable in table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-tfilelist-variable-in-table/m-p/2347585#M114803</link>
      <description>Hi 
&lt;BR /&gt;Add a tMap before tDBxxxOutput component, add a new column and set its expression with the global variable. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 28 Nov 2017 09:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-tfilelist-variable-in-table/m-p/2347585#M114803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T09:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert tfilelist variable in table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-tfilelist-variable-in-table/m-p/2347586#M114804</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt;thank you for your help.&lt;BR /&gt;&lt;BR /&gt;I did what you say but the output was null for all columns.&lt;BR /&gt;&lt;BR /&gt;Am I doing something wrong?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sem Título.png" style="width: 806px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lrob.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148555iB134E0FD54182208/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lrob.png" alt="0683p000009Lrob.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 10:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-tfilelist-variable-in-table/m-p/2347586#M114804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T10:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert tfilelist variable in table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-tfilelist-variable-in-table/m-p/2347587#M114805</link>
      <description>&lt;P&gt;You have to map your data ...&amp;nbsp; just with drag and drop&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrqF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137057iEE71115C26864A65/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrqF.png" alt="0683p000009LrqF.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lr28"&gt;Capture.PNG&lt;/A&gt;</description>
      <pubDate>Tue, 28 Nov 2017 10:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-tfilelist-variable-in-table/m-p/2347587#M114805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T10:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert tfilelist variable in table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-tfilelist-variable-in-table/m-p/2347588#M114806</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMEwAAO"&gt;@sgv&lt;/A&gt;Still not working. &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;&lt;BR /&gt;&lt;BR /&gt;Now all columns ourtuput is ok, except the variable one.&lt;BR /&gt;&lt;BR /&gt;Is the variable ok? ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 11:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-tfilelist-variable-in-table/m-p/2347588#M114806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T11:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert tfilelist variable in table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-tfilelist-variable-in-table/m-p/2347589#M114807</link>
      <description>&lt;P&gt;It's depend of the name of your variable.&lt;BR /&gt;So your tFileList have a Talend Name and a Personnal name (default : personnal name = talend name).&lt;BR /&gt;for exemple :&amp;nbsp; &lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 212px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lrqt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128055iB5EF1F6510E7DA73/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lrqt.png" alt="0683p000009Lrqt.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Here, personnal name is "azerty" and TalendName is "tFileUnarchive_1"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So what is the purpose of that :&lt;/P&gt; 
&lt;P&gt;When you want to use a global variable, you have just to write this : "azerty." and then if you press "Ctr+space", talend will give you every global var generated&amp;nbsp; by the component.&lt;/P&gt; 
&lt;P&gt;like this :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 973px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lrqy.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145177iF1B324000A8713F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lrqy.png" alt="0683p000009Lrqy.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Then, you have juste to choise the global var needed, and Talend will give you the appropriate code. In this case, I want the CURRENT_FILEPATH : ((String)globalMap.get("tFileUnarchive_1_CURRENT_FILEPATH"))&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It's really important to understand that if you want to use global var from component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In your case, maybe you can rename your tFileList with a name variable more appropriate, like ListeFile&lt;/P&gt; 
&lt;P&gt;And then in your tMap try to write "ListeFile." and press "Ctr+Space"&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;/P&gt; 
&lt;P&gt;SGV&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 13:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-tfilelist-variable-in-table/m-p/2347589#M114807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T13:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert tfilelist variable in table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-tfilelist-variable-in-table/m-p/2347590#M114808</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMEwAAO"&gt;@sgv&lt;/A&gt;Thank you very much. I already made it but your answer made me understand a little more about those variables.&lt;BR /&gt;&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;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 13:13:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-tfilelist-variable-in-table/m-p/2347590#M114808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T13:13:57Z</dc:date>
    </item>
  </channel>
</rss>

