<?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 QV Script Structure in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QV-Script-Structure/m-p/304439#M112537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to QlikView and so far i've been able to pick up everything...except for the script data load.&amp;nbsp; I inhereted the reports i'm working with right now and am having problems understanding why some datasets are using the "Directory" options while others are just using an alias name.&amp;nbsp;&amp;nbsp; Can someone explain this?&amp;nbsp; I'm really want to make the reports load the data in the most least-taxing way possible and I can't do this without understanding what's going on here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************************&lt;/P&gt;&lt;P&gt;Customers:&amp;nbsp;&amp;nbsp; &amp;lt;---What is this doing?!&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; CustomerName,&lt;/P&gt;&lt;P&gt; CustomerID &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT&amp;nbsp; *&lt;/P&gt;&lt;P&gt;FROM dbo.Customers;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************************&lt;/P&gt;&lt;P&gt;Directory;&amp;nbsp; &amp;lt;---What is this doing?!&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Terms, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TermID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT * &lt;/P&gt;&lt;P&gt;FROM dbo.PaymentTerms;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************************&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2011 16:45:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-15T16:45:37Z</dc:date>
    <item>
      <title>QV Script Structure</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Script-Structure/m-p/304439#M112537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to QlikView and so far i've been able to pick up everything...except for the script data load.&amp;nbsp; I inhereted the reports i'm working with right now and am having problems understanding why some datasets are using the "Directory" options while others are just using an alias name.&amp;nbsp;&amp;nbsp; Can someone explain this?&amp;nbsp; I'm really want to make the reports load the data in the most least-taxing way possible and I can't do this without understanding what's going on here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************************&lt;/P&gt;&lt;P&gt;Customers:&amp;nbsp;&amp;nbsp; &amp;lt;---What is this doing?!&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; CustomerName,&lt;/P&gt;&lt;P&gt; CustomerID &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT&amp;nbsp; *&lt;/P&gt;&lt;P&gt;FROM dbo.Customers;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************************&lt;/P&gt;&lt;P&gt;Directory;&amp;nbsp; &amp;lt;---What is this doing?!&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Terms, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TermID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT * &lt;/P&gt;&lt;P&gt;FROM dbo.PaymentTerms;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************************&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 16:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Script-Structure/m-p/304439#M112537</guid>
      <dc:creator />
      <dc:date>2011-12-15T16:45:37Z</dc:date>
    </item>
    <item>
      <title>QV Script Structure</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Script-Structure/m-p/304440#M112538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Your 'Customers:' statement is labelling the subsequent table 'Customers' so once loaded if you press Ctrl+t and view the Table view you'll see you have a table called 'Customers'. In most cases it's simply there for best practice to easily identify which table is which eg when selecting new fields from the Sheet Properties dialog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When correct naming of tables becomes crucial is when using the 'Qualify' statement, this prefixs all your field names with the name af the table to break any unwanted associations eg fields A, B and C become Customers.A, Customers.B and Customers.C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I understand 'Directory;' only appears when you're using Relatice Paths in the load script (bottom of Script Editor) - personally I always delete it as it's confusing and pointless (I've never had a problem caused by deleting it), search the help file for 'Directory' and it will give you the following explanation (that still seems pointless):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/"&gt;&lt;SPAN class="Bold"&gt;load&lt;/SPAN&gt;&lt;/A&gt; statement can be preceded by a &lt;SPAN style="color: #ffffff; background-color: #316ac5;"&gt;directory&lt;/SPAN&gt; statement, defining what &lt;SPAN style="color: #ffffff; background-color: #316ac5;"&gt;directory&lt;/SPAN&gt; to look for the files in.&lt;/P&gt;&lt;H4&gt;&lt;SPAN style="color: #ffffff; background-color: #316ac5;"&gt;directory&lt;/SPAN&gt; &lt;SPAN style="font-style: italic;"&gt;path&lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: italic;"&gt;path&lt;/SPAN&gt; is a text that can be interpreted as the path to the file, either absolute, or relative to the .qvw file.&lt;/P&gt;&lt;H2&gt;Example:&lt;/H2&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;SPAN style="color: #ffffff; background-color: #316ac5;"&gt;Directory&lt;/SPAN&gt; c:\userfiles\data;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;The &lt;SPAN style="color: #ffffff; background-color: #316ac5;"&gt;directory&lt;/SPAN&gt; defined through this statement is used by subsequent &lt;A href="https://community.qlik.com/"&gt;&lt;SPAN class="Bold"&gt;load&lt;/SPAN&gt;&lt;/A&gt; statements, until a new &lt;SPAN style="color: #ffffff; background-color: #316ac5;"&gt;directory&lt;/SPAN&gt; statement is made.&lt;/P&gt;&lt;P&gt;A &lt;SPAN style="color: #ffffff; background-color: #316ac5;"&gt;directory&lt;/SPAN&gt; statement is generated automatically if &lt;SPAN class="Bold"&gt;Relative Paths&lt;/SPAN&gt; is enabled in the &lt;SPAN class="Bold"&gt;Edit Script&lt;/SPAN&gt; dialog. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;////////////////////////////////////////&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt - Visual Analytics Ltd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 17:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Script-Structure/m-p/304440#M112538</guid>
      <dc:creator>matt_crowther</dc:creator>
      <dc:date>2011-12-15T17:02:23Z</dc:date>
    </item>
  </channel>
</rss>

