<?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 How to Dynamically get an Excel file name in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-Dynamically-get-an-Excel-file-name/m-p/2230356#M21007</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I am using tFileInputExcel Component and how to get the input file on dynamically,&lt;/P&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-18 lia-quilt-column-left lia-quilt-column-main-left"&gt;
 &lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
  &lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
   &lt;DIV class="lia-message-body-content"&gt;
    I use 
    &lt;FONT color="#FF0000"&gt;((String)globalMap.get("tFileInputExcel_1_FILENAME"))&lt;/FONT&gt; in a field in tmap component but it doesnt work.
    &lt;BR /&gt;Any help?
   &lt;/DIV&gt;
  &lt;/DIV&gt;
  &lt;DIV class="lia-rating-metoo lia-component-me-too lia-component-message-view-widget-me-too"&gt;
   &amp;nbsp;
  &lt;/DIV&gt;
 &lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-06 lia-quilt-column-right lia-quilt-column-main-right"&gt;
 &lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;
  &lt;DIV class="LabelsForArticle lia-component-labels lia-component-message-view-widget-labels-with-event"&gt;
   &lt;DIV class="LabelsList"&gt;
    &amp;nbsp;
   &lt;/DIV&gt;
  &lt;/DIV&gt;
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:43:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T03:43:51Z</dc:date>
    <item>
      <title>How to Dynamically get an Excel file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Dynamically-get-an-Excel-file-name/m-p/2230356#M21007</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I am using tFileInputExcel Component and how to get the input file on dynamically,&lt;/P&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-18 lia-quilt-column-left lia-quilt-column-main-left"&gt;
 &lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
  &lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
   &lt;DIV class="lia-message-body-content"&gt;
    I use 
    &lt;FONT color="#FF0000"&gt;((String)globalMap.get("tFileInputExcel_1_FILENAME"))&lt;/FONT&gt; in a field in tmap component but it doesnt work.
    &lt;BR /&gt;Any help?
   &lt;/DIV&gt;
  &lt;/DIV&gt;
  &lt;DIV class="lia-rating-metoo lia-component-me-too lia-component-message-view-widget-me-too"&gt;
   &amp;nbsp;
  &lt;/DIV&gt;
 &lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-06 lia-quilt-column-right lia-quilt-column-main-right"&gt;
 &lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;
  &lt;DIV class="LabelsForArticle lia-component-labels lia-component-message-view-widget-labels-with-event"&gt;
   &lt;DIV class="LabelsList"&gt;
    &amp;nbsp;
   &lt;/DIV&gt;
  &lt;/DIV&gt;
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Dynamically-get-an-Excel-file-name/m-p/2230356#M21007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Dynamically get an Excel file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Dynamically-get-an-Excel-file-name/m-p/2230357#M21008</link>
      <description>is the file name a variable or fixed value on tFileInputExcel? You can use a context variable as file name, for example: 
&lt;BR /&gt;"D:/file/"+context.filename 
&lt;BR /&gt;And then, you can get the file name using context.filename on any other components. 
&lt;BR /&gt; 
&lt;BR /&gt;BTW, please insert your images into post body instead of attaching it. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 25 Dec 2019 08:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Dynamically-get-an-Excel-file-name/m-p/2230357#M21008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-25T08:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Dynamically get an Excel file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Dynamically-get-an-Excel-file-name/m-p/2230358#M21009</link>
      <description>Hi,
&lt;BR /&gt;Could you please let me know where should I need to add this context.filename and my input file name is not fixed, it's a dynamic name.</description>
      <pubDate>Wed, 25 Dec 2019 09:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Dynamically-get-an-Excel-file-name/m-p/2230358#M21009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-25T09:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Dynamically get an Excel file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Dynamically-get-an-Excel-file-name/m-p/2230359#M21010</link>
      <description>&lt;P&gt;In the Context view, you can define a variable. To use a variable, the format is: context.varName&lt;BR /&gt;Can you please explain why the file name is a dynamic name in your case? So that I can give you an accurate answer.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 03:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Dynamically-get-an-Excel-file-name/m-p/2230359#M21010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-26T03:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Dynamically get an Excel file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Dynamically-get-an-Excel-file-name/m-p/2230360#M21011</link>
      <description>Hi,
&lt;BR /&gt;Thanks for your reply,
&lt;BR /&gt;I want to read the files from a folder. The filename should be changed dynamically like
&lt;BR /&gt;report(1).xlsx
&lt;BR /&gt;report(2).xlsx
&lt;BR /&gt;report(3).xlsx
&lt;BR /&gt;How do I read the files from the folder? at the same time, I wants to store the read file name into the table.</description>
      <pubDate>Thu, 26 Dec 2019 06:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Dynamically-get-an-Excel-file-name/m-p/2230360#M21011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-26T06:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Dynamically get an Excel file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Dynamically-get-an-Excel-file-name/m-p/2230361#M21012</link>
      <description>You just need to use a tFileList to iterate each file in the specified folder, this component pre-define some global variables which you can use on other components, includes:
&lt;BR /&gt;file path: (String)globalMap.get("tFileList_1_CURRENT_FILE"))
&lt;BR /&gt;file name: ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")).
&lt;BR /&gt;The job design looks like:
&lt;BR /&gt;tFileList--iterate--tFileInputExcel--main--tMap--&amp;gt;
&lt;BR /&gt;
&lt;BR /&gt;Hope it helps you!
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 26 Dec 2019 10:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Dynamically-get-an-Excel-file-name/m-p/2230361#M21012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-26T10:05:21Z</dc:date>
    </item>
  </channel>
</rss>

