<?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: Include statement script issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Include-statement-script-issue/m-p/455078#M695629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For clarification -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This works:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;$(Include=..\Data\Config\myScript.qvs);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This does not:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;sub blah&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;$(Include=..\Data\Config\myScript.qvs);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to get the variable path to work &lt;EM&gt;outside&lt;/EM&gt; of a subroutine after all using the method from &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/204806#204806"&gt;http://community.qlik.com/message/204806#204806&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still interested to know if anyone has a means of doing the same thing from within a sub (second example above).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Apr 2013 16:02:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-15T16:02:13Z</dc:date>
    <item>
      <title>Include statement script issue</title>
      <link>https://community.qlik.com/t5/QlikView/Include-statement-script-issue/m-p/455077#M695628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to include a script in my QVW during the run using a variable path.&amp;nbsp; The problem I am running into is this: if I include the script outside of a subroutine, the include statement gets parsed before the variables have been initialized and it fails; on the other hand, if I put the include statement in a subroutine it appears to include successfully but when a call to a method from the included script tries to execute, it fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the two statements:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $(Include=$(Config_Root)\myScript.qvs)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(Include=..\Data\Config\myScript.qvs);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interesting thing is that neither of these statements works if they are wrapped by a subroutine...&amp;nbsp; Does anyone know if there is a different syntax for calling methods that have been included within a subroutine during the run?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 15:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-statement-script-issue/m-p/455077#M695628</guid>
      <dc:creator />
      <dc:date>2013-04-15T15:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Include statement script issue</title>
      <link>https://community.qlik.com/t5/QlikView/Include-statement-script-issue/m-p/455078#M695629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For clarification -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This works:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;$(Include=..\Data\Config\myScript.qvs);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This does not:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;sub blah&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;$(Include=..\Data\Config\myScript.qvs);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to get the variable path to work &lt;EM&gt;outside&lt;/EM&gt; of a subroutine after all using the method from &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/204806#204806"&gt;http://community.qlik.com/message/204806#204806&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still interested to know if anyone has a means of doing the same thing from within a sub (second example above).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 16:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-statement-script-issue/m-p/455078#M695629</guid>
      <dc:creator />
      <dc:date>2013-04-15T16:02:13Z</dc:date>
    </item>
  </channel>
</rss>

