<?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 load script - prompt user for data file name to reload from in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/load-script-prompt-user-for-data-file-name-to-reload-from/m-p/185692#M502418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi is there a way to prompt the user (by input box) each time a reload is required for the file name for which the data is to be loaded from?&lt;/P&gt;&lt;P&gt;The excel data file name changes on a monthly basis and therefore it isnt the user friendly option to manually add the path to the load script each time.&lt;/P&gt;&lt;P&gt;e.g. my script currently looks like the following&lt;/P&gt;&lt;P&gt;---------------------&lt;/P&gt;&lt;P&gt;[DEMAND DATA]:&lt;BR /&gt;LOAD Month,&lt;BR /&gt; CAL_DAYS,&lt;BR /&gt; Start_Date,&lt;BR /&gt; Real_Data&lt;BR /&gt;FROM&lt;BR /&gt;[\\C:\Program Files\QlikView\&lt;B&gt;Data\Demand Model Version 10.xls&lt;/B&gt;]&lt;BR /&gt;(biff, embedded labels, table is [Qlikview Output$]);&lt;/P&gt;&lt;P&gt;--------------------------&lt;/P&gt;&lt;P&gt;Say if the excel data file has changed to &lt;B&gt;'Demand Model Version 15.xls'&lt;/B&gt;. Would it be possible to include a user input box that prompts the user to enter this new name on reload? This file name can then be used to update the load script file path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Sep 2010 12:51:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-02T12:51:43Z</dc:date>
    <item>
      <title>load script - prompt user for data file name to reload from</title>
      <link>https://community.qlik.com/t5/QlikView/load-script-prompt-user-for-data-file-name-to-reload-from/m-p/185692#M502418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi is there a way to prompt the user (by input box) each time a reload is required for the file name for which the data is to be loaded from?&lt;/P&gt;&lt;P&gt;The excel data file name changes on a monthly basis and therefore it isnt the user friendly option to manually add the path to the load script each time.&lt;/P&gt;&lt;P&gt;e.g. my script currently looks like the following&lt;/P&gt;&lt;P&gt;---------------------&lt;/P&gt;&lt;P&gt;[DEMAND DATA]:&lt;BR /&gt;LOAD Month,&lt;BR /&gt; CAL_DAYS,&lt;BR /&gt; Start_Date,&lt;BR /&gt; Real_Data&lt;BR /&gt;FROM&lt;BR /&gt;[\\C:\Program Files\QlikView\&lt;B&gt;Data\Demand Model Version 10.xls&lt;/B&gt;]&lt;BR /&gt;(biff, embedded labels, table is [Qlikview Output$]);&lt;/P&gt;&lt;P&gt;--------------------------&lt;/P&gt;&lt;P&gt;Say if the excel data file has changed to &lt;B&gt;'Demand Model Version 15.xls'&lt;/B&gt;. Would it be possible to include a user input box that prompts the user to enter this new name on reload? This file name can then be used to update the load script file path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 12:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-script-prompt-user-for-data-file-name-to-reload-from/m-p/185692#M502418</guid>
      <dc:creator />
      <dc:date>2010-09-02T12:51:43Z</dc:date>
    </item>
    <item>
      <title>load script - prompt user for data file name to reload from</title>
      <link>https://community.qlik.com/t5/QlikView/load-script-prompt-user-for-data-file-name-to-reload-from/m-p/185693#M502419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi J Trof,&lt;/P&gt;&lt;P&gt;We can do this with help of macro (VBscript). Write a macro to get a input from user and store that to a variable, You can use this variable in your load script.&lt;/P&gt;&lt;P&gt;B/w after writing the macro, map the fucntion to BEFORE RELOAD event in document settings so that it will popup the input box for the user to enter the file path and name.&lt;/P&gt;&lt;P&gt;- Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 13:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-script-prompt-user-for-data-file-name-to-reload-from/m-p/185693#M502419</guid>
      <dc:creator />
      <dc:date>2010-09-02T13:00:55Z</dc:date>
    </item>
    <item>
      <title>load script - prompt user for data file name to reload from</title>
      <link>https://community.qlik.com/t5/QlikView/load-script-prompt-user-for-data-file-name-to-reload-from/m-p/185694#M502420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;You can declare a variable to store the answer previous to the load statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LET vVersion = Input('Please specify version number', 'Warning');&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then create a variable with the path including the answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SET vPath = C:\Directory\Whatever\Demand Model Version $(vVersion).xls;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then load the file.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 13:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-script-prompt-user-for-data-file-name-to-reload-from/m-p/185694#M502420</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-09-02T13:03:50Z</dc:date>
    </item>
    <item>
      <title>load script - prompt user for data file name to reload from</title>
      <link>https://community.qlik.com/t5/QlikView/load-script-prompt-user-for-data-file-name-to-reload-from/m-p/185695#M502421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="http://community.qlik.com/members/mabaeyens/default.aspx"&gt;&lt;STRONG&gt;Miguel A. Baeyens&lt;/STRONG&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;This code looks very intresting, i`ll try to execute this code today.&lt;/P&gt;&lt;P&gt;one &lt;STRONG&gt;Learning for the day&lt;/STRONG&gt;. Thanks &lt;IMG alt="Geeked" src="http://community.qlik.com/emoticons/emotion-15.gif" /&gt;&lt;/P&gt;&lt;P&gt;-Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 13:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-script-prompt-user-for-data-file-name-to-reload-from/m-p/185695#M502421</guid>
      <dc:creator />
      <dc:date>2010-09-02T13:08:46Z</dc:date>
    </item>
    <item>
      <title>load script - prompt user for data file name to reload from</title>
      <link>https://community.qlik.com/t5/QlikView/load-script-prompt-user-for-data-file-name-to-reload-from/m-p/185696#M502422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have added the load script and variable as follows:&lt;/P&gt;&lt;P&gt;LET vDemandModelName = Input('Please demand model file name', 'Warning');&lt;BR /&gt;SET vDemandModelPath = C:\Directory\Whatever\Demand Model Version $(vDemandModelName).xls;&lt;/P&gt;&lt;P&gt;How do i add the &lt;B&gt;vDemandModelPath&lt;/B&gt; to my load script below:&lt;/P&gt;&lt;P&gt;----------------&lt;/P&gt;&lt;P&gt;[DEMAND DATA]:&lt;BR /&gt;LOAD Month,&lt;BR /&gt; CAL_DAYS,&lt;BR /&gt; Start_Date,&lt;BR /&gt; Real_Data&lt;BR /&gt;FROM&lt;BR /&gt;[\\C:\Program Files\QlikView\&lt;B&gt;Data\Demand Model Version 10.xls&lt;/B&gt;]&lt;BR /&gt;(biff, embedded labels, table is [Qlikview Output$]);&lt;/P&gt;&lt;P&gt;---------------------------------&lt;/P&gt;&lt;P&gt;i was thinking on the lines of&lt;/P&gt;&lt;P&gt;DEMAND DATA]:&lt;BR /&gt;LOAD Month,&lt;BR /&gt; CAL_DAYS,&lt;BR /&gt; Start_Date,&lt;BR /&gt; Real_Data&lt;BR /&gt;FROM&lt;BR /&gt; &lt;B&gt;vDemandModelPath&lt;/B&gt;&lt;BR /&gt;(biff, embedded labels, table is [Qlikview Output$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 13:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-script-prompt-user-for-data-file-name-to-reload-from/m-p/185696#M502422</guid>
      <dc:creator />
      <dc:date>2010-09-02T13:17:08Z</dc:date>
    </item>
    <item>
      <title>load script - prompt user for data file name to reload from</title>
      <link>https://community.qlik.com/t5/QlikView/load-script-prompt-user-for-data-file-name-to-reload-from/m-p/185697#M502423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use dollar expansion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;FROM [&lt;STRONG&gt;$(vDemandModelPath)]&lt;/STRONG&gt;(biff, embedded labels, table is [Qlikview Output$]);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Besides, is my custome to enclose in square brackets when spaces or blanks are likely.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 15:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-script-prompt-user-for-data-file-name-to-reload-from/m-p/185697#M502423</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-09-02T15:07:44Z</dc:date>
    </item>
    <item>
      <title>load script - prompt user for data file name to reload from</title>
      <link>https://community.qlik.com/t5/QlikView/load-script-prompt-user-for-data-file-name-to-reload-from/m-p/185698#M502424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Sridhar!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 15:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-script-prompt-user-for-data-file-name-to-reload-from/m-p/185698#M502424</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-09-02T15:08:32Z</dc:date>
    </item>
  </channel>
</rss>

