<?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: Read QWV path into a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/534999#M199885</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Left(DocumentPath(), Index(DocumentPath(), '\', -1) - 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2014 09:33:32 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2014-01-20T09:33:32Z</dc:date>
    <item>
      <title>Read QWV path into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/534995#M199881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the QWV file path into a variable in order to use it for the laod-files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here was an idea:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/211811"&gt;QWV path in VBScript&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;to retrive only path :&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;tmpPath = ActiveDocument.GetPathName&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;lastBackSlash = InStrRev( tmpPath , "\" )&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;path = Left( tmpPath , (lastBackSlash - 1) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, that there is an mistake in the script.&lt;/P&gt;&lt;P&gt;Can anyone help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 09:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/534995#M199881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-20T09:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Read QWV path into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/534996#M199882</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;The below script is working fine for me and returns the path of the current Qlikview file, what mistake you are getting.&amp;nbsp; Where you are using it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Test&lt;/P&gt;&lt;P&gt;tmpPath = ActiveDocument.GetPathName&lt;/P&gt;&lt;P&gt;msgbox(tmpPath)&lt;/P&gt;&lt;P&gt;lastBackSlash = InStrRev( tmpPath , "\" )&lt;/P&gt;&lt;P&gt;path = Left( tmpPath , (lastBackSlash - 1) )&lt;/P&gt;&lt;P&gt;msgbox(path)&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 09:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/534996#M199882</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-01-20T09:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Read QWV path into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/534997#M199883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you fpr your answer.&lt;/P&gt;&lt;P&gt;I didn't put it into a sub.&lt;/P&gt;&lt;P&gt;Is there a possiblity to get the information in the script without using a sub?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 09:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/534997#M199883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-20T09:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Read QWV path into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/534998#M199884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Robert&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function &lt;SPAN class="Bold"&gt;&lt;EM&gt;DocumentPath( )&lt;/EM&gt;&lt;/SPAN&gt; should be what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It returns a string containing the full path to the current QlikView document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 09:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/534998#M199884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-20T09:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Read QWV path into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/534999#M199885</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Left(DocumentPath(), Index(DocumentPath(), '\', -1) - 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 09:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/534999#M199885</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-01-20T09:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Read QWV path into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/535000#M199886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your answer.&lt;/P&gt;&lt;P&gt;But now I have the problem that, the result is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d:\test1\qlikview\DocumentPath( )\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I delete this part (DocumentPath( ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u fpr your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 09:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/535000#M199886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-20T09:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Read QWV path into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/535001#M199887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Robert&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jagan's suggestion should work, as in :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Left(DocumentPath(), Index(DocumentPath(), '\', -1) - 1)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 09:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/535001#M199887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-20T09:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read QWV path into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/535002#M199888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you four your answer, but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET Speicherort = Left(DocumentPath(), Index(DocumentPath(), '\', -1) - 1);&lt;/P&gt;&lt;P&gt;leads to&lt;/P&gt;&lt;P&gt;D:\TEST\QLIKVIEW\Left(DocumentPath(), Index(DocumentPath(), '\', -1) - 1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 09:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/535002#M199888</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-20T09:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Read QWV path into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/535003#M199889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Robert&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use LET instead of SET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 09:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/535003#M199889</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-20T09:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Read QWV path into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/535004#M199890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to be using Let instead of Set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should then work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 09:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-QWV-path-into-a-variable/m-p/535004#M199890</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-01-20T09:43:43Z</dc:date>
    </item>
  </channel>
</rss>

