<?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 Get name tFileInputExcel in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-name-tFileInputExcel/m-p/2377587#M139398</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I developed this job and want to retrieve the name of the excel file as the output name of my CSV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to go through a context variable in which I put:&lt;/P&gt;&lt;P&gt;&lt;B&gt;FILE_INPUT_EXCEL = /doc/input/test.xlsx&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;So I want my CSV file to be called test.csv&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I do this?&lt;/P&gt;&lt;P&gt;I know I can go through the tFileList component but I don't have a list of files to process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance &lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:18:37 GMT</pubDate>
    <dc:creator>jmialoundama</dc:creator>
    <dc:date>2024-11-15T23:18:37Z</dc:date>
    <item>
      <title>Get name tFileInputExcel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-name-tFileInputExcel/m-p/2377587#M139398</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I developed this job and want to retrieve the name of the excel file as the output name of my CSV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to go through a context variable in which I put:&lt;/P&gt;&lt;P&gt;&lt;B&gt;FILE_INPUT_EXCEL = /doc/input/test.xlsx&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;So I want my CSV file to be called test.csv&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I do this?&lt;/P&gt;&lt;P&gt;I know I can go through the tFileList component but I don't have a list of files to process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance &lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-name-tFileInputExcel/m-p/2377587#M139398</guid>
      <dc:creator>jmialoundama</dc:creator>
      <dc:date>2024-11-15T23:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get name tFileInputExcel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-name-tFileInputExcel/m-p/2377588#M139399</link>
      <description>&lt;P&gt;If you have a context variable which stores the file path like "&lt;B&gt;/doc/input/test.xlsx&lt;/B&gt;", then you can extract the file name from this variable. &lt;/P&gt;&lt;P&gt;context.filepath.substring(context.filepath.lastIndexOf("/")+1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 08:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-name-tFileInputExcel/m-p/2377588#M139399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-14T08:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get name tFileInputExcel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-name-tFileInputExcel/m-p/2377589#M139400</link>
      <description>&lt;P&gt;Hi maybe you can use the global Var created by the tFileExist : (String)globalMap.get("tFileExist_1_FILENAME").&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 08:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-name-tFileInputExcel/m-p/2377589#M139400</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-01-14T08:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get name tFileInputExcel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-name-tFileInputExcel/m-p/2377590#M139401</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You can use tFileList componen even if you have only one excel file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;((String)globalMap.get("tFileList_1_CURRENT_FILE")) is a variable created by the tFileList component for each file it found. &lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 08:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-name-tFileInputExcel/m-p/2377590#M139401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-14T08:31:40Z</dc:date>
    </item>
  </channel>
</rss>

