<?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 Reload using QVD-files from alternate location in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reload-using-QVD-files-from-alternate-location/m-p/317293#M117035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a QlikView-appliction that is split into two parts. We have one document that only creates QVD-files from our database. These are saved to a local folder, let's say C:\QlikViewData.&lt;/P&gt;&lt;P&gt;The other document which contains the GUI, macros and everything else loads its data from these QVD-files. Nothing weird so far right? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's where it gets tricky.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to find a way to load the document with data from an alternate location, say C:\QlikViewData\alt, before then executing a specific macro and finally reloading with data from the usual location (C:\QlikViewData).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically a button that does:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Reload document with QVD-files stored at C:\QlikViewData\alt&lt;/LI&gt;&lt;LI&gt;Run macro&lt;/LI&gt;&lt;LI&gt;Reload document with QVD-files stored at C:\QlikViewData&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone here done anything like this before? Could you offer some pointers to the best way to go about doing this? I'd be grateful for any and all help I can get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: I noticed that point 1 and 3 had incorrectly switched. It is now as it should be. Reload with alternate location first, run macro and then restore from usual location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: thedanlof&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2011 12:31:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-14T12:31:21Z</dc:date>
    <item>
      <title>Reload using QVD-files from alternate location</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-using-QVD-files-from-alternate-location/m-p/317293#M117035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a QlikView-appliction that is split into two parts. We have one document that only creates QVD-files from our database. These are saved to a local folder, let's say C:\QlikViewData.&lt;/P&gt;&lt;P&gt;The other document which contains the GUI, macros and everything else loads its data from these QVD-files. Nothing weird so far right? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's where it gets tricky.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to find a way to load the document with data from an alternate location, say C:\QlikViewData\alt, before then executing a specific macro and finally reloading with data from the usual location (C:\QlikViewData).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically a button that does:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Reload document with QVD-files stored at C:\QlikViewData\alt&lt;/LI&gt;&lt;LI&gt;Run macro&lt;/LI&gt;&lt;LI&gt;Reload document with QVD-files stored at C:\QlikViewData&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone here done anything like this before? Could you offer some pointers to the best way to go about doing this? I'd be grateful for any and all help I can get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: I noticed that point 1 and 3 had incorrectly switched. It is now as it should be. Reload with alternate location first, run macro and then restore from usual location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: thedanlof&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 12:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-using-QVD-files-from-alternate-location/m-p/317293#M117035</guid>
      <dc:creator />
      <dc:date>2011-11-14T12:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reload using QVD-files from alternate location</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-using-QVD-files-from-alternate-location/m-p/317294#M117036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like a sensible idea (I'm currently doing a simlar thing). One suggestion, if I'm reading this correctly, would be to use IsPartialReload()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first part would run the script using a Full Reload macro: activedocument.reload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script (by setting a varible to IsPartialReload: let PR= if(IsPartialReload() =0, 'N', 'Y')&amp;nbsp; loads from location a if PR=N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second part would run the script using a Partial Reload macro: activedocument.partialreload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script then loads from location b if PR=Y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course the second part (partial reload) will keep the original data but that can be easily dropped&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 15:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-using-QVD-files-from-alternate-location/m-p/317294#M117036</guid>
      <dc:creator />
      <dc:date>2011-11-14T15:06:32Z</dc:date>
    </item>
    <item>
      <title>Reload using QVD-files from alternate location</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-using-QVD-files-from-alternate-location/m-p/317295#M117037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a variable to right part of the file path.&lt;/P&gt;&lt;P&gt;Let us call this variable 'Path' &lt;/P&gt;&lt;P&gt;The steps will become: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.1 set Path to 'C:\QlikViewData\alt\'&lt;/P&gt;&lt;P&gt;1.2 Reload data &lt;/P&gt;&lt;P&gt;2. Run Macro&lt;/P&gt;&lt;P&gt;3.1 set Path to 'C:\QlikViewData\'&lt;/P&gt;&lt;P&gt;3.2 Reload Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The load statement in script will be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * from &lt;/P&gt;&lt;P&gt;$(Path)\SALES.QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 13:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-using-QVD-files-from-alternate-location/m-p/317295#M117037</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-11-15T13:55:27Z</dc:date>
    </item>
  </channel>
</rss>

