<?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: How to use include files in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-include-files-in-qlikview/m-p/1451838#M804974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The idea behind include files is to give you the ability to share a bit of code within multiple QVW files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax is as &lt;A href="https://community.qlik.com/qlik-users/43209"&gt;florentina.dogaru&lt;/A&gt;‌ mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference between include and must include is that the include fails silently.&amp;nbsp; What I mean by that is that if the file specified does not exists it will skip past that bit of code.&amp;nbsp; The mus include will produce a hard fail if the file does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(I&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;nclude =&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;filename&lt;/SPAN&gt; )&lt;/H4&gt;&lt;H4 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(Must_&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A name="kanchor1063" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;Include&lt;A name="kanchor1064" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;A name="Include" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;/SPAN&gt; = &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;filename&lt;/SPAN&gt; )&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Nov 2017 14:35:42 GMT</pubDate>
    <dc:creator>oscar_ortiz</dc:creator>
    <dc:date>2017-11-10T14:35:42Z</dc:date>
    <item>
      <title>How to use include files in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-include-files-in-qlikview/m-p/1451835#M804971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) When do we use include files in qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) What is the syntax for using includes in script&lt;/P&gt;&lt;P&gt;Syntax for both include and must include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) what's the difference between include and must include. When to use what? Which one is prefered to be used?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-include-files-in-qlikview/m-p/1451835#M804971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use include files in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-include-files-in-qlikview/m-p/1451836#M804972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H4&gt;$(&lt;SPAN class="Bold"&gt;&lt;A name="kanchor1063"&gt;&lt;/A&gt;Include&lt;A name="kanchor1064"&gt;&lt;/A&gt;&lt;A name="Include"&gt;&lt;/A&gt;&lt;/SPAN&gt; = &lt;SPAN style="font-style: italic;"&gt;filename&lt;/SPAN&gt; )&lt;/H4&gt;&lt;P&gt;The &lt;SPAN class="Bold"&gt;include&lt;/SPAN&gt; variable specifies a file that contains text that should be included in the script. The entire script can thus be put in a file. A user-defined variable.&lt;/P&gt;&lt;H2&gt;Example:&lt;/H2&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;$(Include=abc.txt);&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;I.e. the construction &lt;SPAN class="Bold"&gt;set Include =&lt;/SPAN&gt;&lt;SPAN style="font-style: italic;"&gt;filename&lt;/SPAN&gt; is not applicable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 14:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-include-files-in-qlikview/m-p/1451836#M804972</guid>
      <dc:creator>florentina_doga</dc:creator>
      <dc:date>2017-11-10T14:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use include files in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-include-files-in-qlikview/m-p/1451837#M804973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please start using community so you will get all basic stuff from help itself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 14:11:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-include-files-in-qlikview/m-p/1451837#M804973</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-10T14:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use include files in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-include-files-in-qlikview/m-p/1451838#M804974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The idea behind include files is to give you the ability to share a bit of code within multiple QVW files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax is as &lt;A href="https://community.qlik.com/qlik-users/43209"&gt;florentina.dogaru&lt;/A&gt;‌ mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference between include and must include is that the include fails silently.&amp;nbsp; What I mean by that is that if the file specified does not exists it will skip past that bit of code.&amp;nbsp; The mus include will produce a hard fail if the file does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(I&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;nclude =&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;filename&lt;/SPAN&gt; )&lt;/H4&gt;&lt;H4 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(Must_&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A name="kanchor1063" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;Include&lt;A name="kanchor1064" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;A name="Include" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;/SPAN&gt; = &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;filename&lt;/SPAN&gt; )&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 14:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-include-files-in-qlikview/m-p/1451838#M804974</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-11-10T14:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to use include files in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-include-files-in-qlikview/m-p/1451839#M804975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is the Include text I use in Qlik Data Load Editor....The red dots before \include is folder directory up or down (forward or back).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// DATABASE CONNECTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vInclude_Filename = '&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;..&lt;/STRONG&gt;&lt;/SPAN&gt;\Includes\DBConnection.txt';&lt;/P&gt;&lt;P&gt;LET vInclude_Directory = '&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;..&lt;/STRONG&gt;&lt;/SPAN&gt;\Includes\Variables.txt';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRACE &amp;lt;LOG&amp;gt; Attempting to INCLUDE file [$(vInclude_Filename)];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF IsNull (FileTime( vInclude_Filename )) THEN;&lt;/P&gt;&lt;P&gt;TRACE File doesnt exist [ $(vInclude_Filename) ];&lt;/P&gt;&lt;P&gt;EXIT SCRIPT ;&lt;/P&gt;&lt;P&gt;END IF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(must_include=$(vInclude_Filename));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRACE ('[$(vInclude_Filename) ] file was found and incorporated into script');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(must_include=$(vInclude_Directory));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you'd need to place the attached document in Include Folder or any other folder you like but then accordingly you'd have to modify the destination in include script..&lt;/P&gt;&lt;P&gt;Same kind of text document would got for Data Base Connection. Where you store your connection string(s).&lt;/P&gt;&lt;P&gt;And I agree with Anil, most of the answers to your questions are already available in community. Just search it and you'll get it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 17:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-include-files-in-qlikview/m-p/1451839#M804975</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2017-11-10T17:03:48Z</dc:date>
    </item>
  </channel>
</rss>

