<?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 Using DocumentPath() with $(Include= in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-DocumentPath-with-Include/m-p/227740#M79837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple quick points:&lt;/P&gt;&lt;P&gt;1. DocumentPath includes the the filename of the qvw; you probably want to strip off the filename&lt;/P&gt;&lt;P&gt;2. The concatenation character is '&amp;amp;' not '+'; qlikview will convert the strings to numbers if you use '+' which results in null&lt;/P&gt;&lt;P&gt;As for using a dollar expansion in an include, this works in 9.0 SR2 and later; earlier version did not seem to work. Try using the latest version if you're using something earlier than 9.0 SR 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Apr 2010 16:42:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-29T16:42:11Z</dc:date>
    <item>
      <title>Using DocumentPath() with $(Include=</title>
      <link>https://community.qlik.com/t5/QlikView/Using-DocumentPath-with-Include/m-p/227739#M79836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Folks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to make use of QVS files but I'm struggling with making sure the location is correct in my various environments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In development: these are located at \QLIKVIEW\QVS and so the following command works fine:&lt;/P&gt;&lt;P&gt;$(Include=\qlikview\qvs\standardvariables.qvs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my staging environment the files are located at D:\Qlikview\QVS but the refresh is launched from machine A when the QVS files are on machine B, so the above include command will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been thinking therefore that using the DocumentPath() function would help me, but what I cant seem to do is to format a variable that can be used in the include command, for example:&lt;/P&gt;&lt;P&gt;LET fn1=DocumentPath();&lt;/P&gt;&lt;P&gt;LET fn2='\qlikview\qvs\standardvariables.qvs';&lt;/P&gt;&lt;P&gt;LET fn3=fn1+fn2;&lt;/P&gt;&lt;P&gt;$(Include=$(fn3));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above doesn't work, any ideas if what I'm trying to do is possible, and if not, do you have any other suggestions as to how I could control the inclusion of QVS files from variable locations according to environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 12:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-DocumentPath-with-Include/m-p/227739#M79836</guid>
      <dc:creator />
      <dc:date>2010-04-29T12:46:08Z</dc:date>
    </item>
    <item>
      <title>Using DocumentPath() with $(Include=</title>
      <link>https://community.qlik.com/t5/QlikView/Using-DocumentPath-with-Include/m-p/227740#M79837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple quick points:&lt;/P&gt;&lt;P&gt;1. DocumentPath includes the the filename of the qvw; you probably want to strip off the filename&lt;/P&gt;&lt;P&gt;2. The concatenation character is '&amp;amp;' not '+'; qlikview will convert the strings to numbers if you use '+' which results in null&lt;/P&gt;&lt;P&gt;As for using a dollar expansion in an include, this works in 9.0 SR2 and later; earlier version did not seem to work. Try using the latest version if you're using something earlier than 9.0 SR 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 16:42:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-DocumentPath-with-Include/m-p/227740#M79837</guid>
      <dc:creator />
      <dc:date>2010-04-29T16:42:11Z</dc:date>
    </item>
  </channel>
</rss>

