<?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: Re: Using FileTime with willdcard in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492988#M688696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bad news for me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in my case, if I have just this one file in the folder (every day the yesterday's one get deleted and the new one is deposited), I would need to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- create a for each so to loop through that one file (!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13838234487859689" jivemacro_uid="_13838234487859689" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;For each&lt;/SPAN&gt; &lt;EM&gt;vFileName&lt;/EM&gt; &lt;SPAN style="color: #0000ff;"&gt;in Filelist&lt;/SPAN&gt; ('\\location\drive$\folder\*.xls')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;Load&lt;/SPAN&gt; '$(vFileName)' &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FileName&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;From&lt;/SPAN&gt; [$(vFileName)];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;Next&lt;/SPAN&gt; &lt;EM&gt;vFileName&lt;/EM&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- then load that in a variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13838265753455702" jivemacro_uid="_13838265753455702" modifiedtitle="true"&gt;
&lt;P&gt;Let vStock = FileName()&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would it be something like this?&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Nov 2013 12:16:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-07T12:16:46Z</dc:date>
    <item>
      <title>Using FileTime with willdcard</title>
      <link>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492986#M688692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have troubles in using wildcard in the path of the specified file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Files are deposited in a folder through an automatic job and the files are called 'YYYYMMDD HHMMSS stock quantity.xls'&lt;/P&gt;&lt;P&gt;Obviously, everyday the YYYYMMDD HHMMSS part is changing, thus I was applying this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13838224154567781" jivemacro_uid="_13838224154567781" modifiedtitle="true"&gt;
&lt;P&gt;Let vStock = FileTime( '\\location\drive$\folder\*stock quantity.xls');&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but indeed QV does not seem to like the wildcard in this syntax.&lt;/P&gt;&lt;P&gt;Can you please help me out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 11:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492986#M688692</guid>
      <dc:creator />
      <dc:date>2013-11-07T11:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using FileTime with willdcard</title>
      <link>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492987#M688694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Filetime can only return one value. And a variable can also have only one value. The wildcard can match more than one file so that's not valid. Either use the exact file name or create a loop that loops through the files and return the filetime for each file. See this blog post: &lt;A _jive_internal="true" class="font-color-normal" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/09/02/loops-in-the-script" style="font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;Loops in the Script&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 11:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492987#M688694</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-07T11:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using FileTime with willdcard</title>
      <link>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492988#M688696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bad news for me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in my case, if I have just this one file in the folder (every day the yesterday's one get deleted and the new one is deposited), I would need to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- create a for each so to loop through that one file (!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13838234487859689" jivemacro_uid="_13838234487859689" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;For each&lt;/SPAN&gt; &lt;EM&gt;vFileName&lt;/EM&gt; &lt;SPAN style="color: #0000ff;"&gt;in Filelist&lt;/SPAN&gt; ('\\location\drive$\folder\*.xls')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;Load&lt;/SPAN&gt; '$(vFileName)' &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FileName&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;From&lt;/SPAN&gt; [$(vFileName)];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;Next&lt;/SPAN&gt; &lt;EM&gt;vFileName&lt;/EM&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- then load that in a variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13838265753455702" jivemacro_uid="_13838265753455702" modifiedtitle="true"&gt;
&lt;P&gt;Let vStock = FileName()&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would it be something like this?&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 12:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492988#M688696</guid>
      <dc:creator />
      <dc:date>2013-11-07T12:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using FileTime with willdcard</title>
      <link>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492989#M688697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit;"&gt;No need to load a table. This will do:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit;"&gt;For each vFileName in Filelist ('\\location\drive$\folder\*.xls')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vStock = FileTime('$(&lt;SPAN style="color: #000000; font-size: 12px;"&gt;vFileName&lt;/SPAN&gt;)');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;// or &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;vStock = '$(&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;vFileName&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;)' if you want the file name instead of its modification date&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;Next &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 12:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492989#M688697</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-07T12:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using FileTime with willdcard</title>
      <link>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492990#M688698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;super mooi!&lt;/P&gt;&lt;P&gt;will give it a try and let you know the outcomes tomorrow, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 12:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492990#M688698</guid>
      <dc:creator />
      <dc:date>2013-11-07T12:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using FileTime with willdcard</title>
      <link>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492991#M688699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying this on a dummy dashboard in the meantime and, to be honest, I have couple files in the same folder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I did&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13838368096512322" jivemacro_uid="_13838368096512322" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit;"&gt;For each vFileName in Filelist ('\\location\drive$\folder\*.xls')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vStock = FileTime('$(&lt;SPAN style="color: #000000; font-size: 12px;"&gt;vFileName&lt;/SPAN&gt;)');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;Next &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit;"&gt;For each vFileName2 in Filelist ('\\location\drive$\folder\*.csv')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vStock2 = FileTime('$(&lt;SPAN style="color: #000000; font-size: 12px;"&gt;vFileName2&lt;/SPAN&gt;)');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;Next &lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is not working properly.&lt;/P&gt;&lt;P&gt;The right file names are stored into vFilaName and vFileName2, but the FileTime function for some reason is working just for the first file.&lt;/P&gt;&lt;P&gt;So, vStock has the timestamp, meanwhile vStock2 is generated empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing something wrong here?&lt;/P&gt;&lt;P&gt;thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 15:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492991#M688699</guid>
      <dc:creator />
      <dc:date>2013-11-07T15:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using FileTime with willdcard</title>
      <link>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492992#M688700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No idea. Your code looks correct and it works for me. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 15:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492992#M688700</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-07T15:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using FileTime with willdcard</title>
      <link>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492993#M688701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Gysbert Wassenaar wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;No idea. Your code looks correct and it works for me.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;yep.&lt;/P&gt;&lt;P&gt;there is something systematically wrong with those files.&lt;/P&gt;&lt;P&gt;I tried with another random *.csv and it is working as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tomorrow will update the answer status, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 16:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-FileTime-with-willdcard/m-p/492993#M688701</guid>
      <dc:creator />
      <dc:date>2013-11-07T16:37:33Z</dc:date>
    </item>
  </channel>
</rss>

