<?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 Document Name in the script (version 8.2) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182885#M48341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dragonauta. FileName() does not give me the document name. In the qv help I found for filename() the following definition that is not what I am looking for "Returns a string containing the name of the table file currently being read, without path but including the extension".&lt;/P&gt;&lt;P&gt;What I need is the document name and not a table or file that is used in the document. Thank you anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Sep 2009 19:22:07 GMT</pubDate>
    <dc:creator>patricio</dc:creator>
    <dc:date>2009-09-11T19:22:07Z</dc:date>
    <item>
      <title>Document Name in the script (version 8.2)</title>
      <link>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182883#M48339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I need to obtain the document name in the script.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I am using version 8.20.5415.2 in my computer and version 8.20.5402.2 in the Server.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I have an application that uses the DocumentName() function to obtain the name of the document and it worked fine in my computer.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;When I published the application on the server the script didn't recognize the DocumentName() function when loading the application. So I need to find another way to obtain the name.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I read everything I found on the blog.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;- The system variable QVWorkPath is not good because it is loaded only at the end of the script. (First load can give a wrong document name)&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;- Writing a function that returns the document name by using Function GETNAME() GETNAME = ActiveDocument.Name End Function hangs when running from the script. I am not an expert in Macros, I pick these lines from the forum.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;- If I use ActiveDocument.GetProperties.FileName I obtain no value.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;The last 2 are giving the path name if is use msgbox(ActiveDocument.Name) or msgbox(ActiveDocument.GetProperties.FileName) when testing the macro.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Someone can share any idea on how to obtain this name?&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Thank you&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 02:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182883#M48339</guid>
      <dc:creator>patricio</dc:creator>
      <dc:date>2009-09-11T02:00:53Z</dc:date>
    </item>
    <item>
      <title>Document Name in the script (version 8.2)</title>
      <link>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182884#M48340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if you need this in a script or macro, but I'm almost sure you need this in a script.&lt;/P&gt;&lt;P&gt;if that's the case FileName() should do the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 03:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182884#M48340</guid>
      <dc:creator />
      <dc:date>2009-09-11T03:21:18Z</dc:date>
    </item>
    <item>
      <title>Document Name in the script (version 8.2)</title>
      <link>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182885#M48341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dragonauta. FileName() does not give me the document name. In the qv help I found for filename() the following definition that is not what I am looking for "Returns a string containing the name of the table file currently being read, without path but including the extension".&lt;/P&gt;&lt;P&gt;What I need is the document name and not a table or file that is used in the document. Thank you anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 19:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182885#M48341</guid>
      <dc:creator>patricio</dc:creator>
      <dc:date>2009-09-11T19:22:07Z</dc:date>
    </item>
    <item>
      <title>Document Name in the script (version 8.2)</title>
      <link>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182886#M48342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had a similar issue.&lt;/P&gt;&lt;P&gt;The only possibility I found is to call a macro and the filename (if you need it all the time you could call the macro with the OnOpen trigger.&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;dim strFilePath&lt;BR /&gt; Dim strFileName&lt;BR /&gt; strFilePath = ActiveDocument.GetProperties.FileName&lt;BR /&gt; strFileName = (InStrRev(strFilePath,"\",len(strFilePath)))&lt;BR /&gt; strFileName = Mid(strFilePath, InStrRev(strFilePath,"\") + 1)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at the attached example.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 19:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182886#M48342</guid>
      <dc:creator />
      <dc:date>2009-09-11T19:37:51Z</dc:date>
    </item>
    <item>
      <title>Document Name in the script (version 8.2)</title>
      <link>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182887#M48343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is anybody out there having a better solution / a solution without using macros?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 20:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182887#M48343</guid>
      <dc:creator />
      <dc:date>2009-09-11T20:37:37Z</dc:date>
    </item>
    <item>
      <title>Document Name in the script (version 8.2)</title>
      <link>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182888#M48344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Stefan,&lt;/P&gt;&lt;P&gt;Are you able to obtain that value from your qlikview script. If yes, could you please send me some tips on how to call that macro from the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 20:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182888#M48344</guid>
      <dc:creator>patricio</dc:creator>
      <dc:date>2009-09-11T20:52:52Z</dc:date>
    </item>
    <item>
      <title>Document Name in the script (version 8.2)</title>
      <link>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182889#M48345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm,&lt;/P&gt;&lt;P&gt;oh, I've overseen that you need it from loadscript.&lt;/P&gt;&lt;P&gt;Have a look at the attached example; this does not work; I think that's because the "Application" object in macro is not initialized while load-script.&lt;BR /&gt;&lt;BR /&gt;Sorry for not having better news ...&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Steafn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 21:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182889#M48345</guid>
      <dc:creator />
      <dc:date>2009-09-11T21:06:10Z</dc:date>
    </item>
    <item>
      <title>Document Name in the script (version 8.2)</title>
      <link>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182890#M48346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, forget to mention:&lt;/P&gt;&lt;P&gt;Have a look into the load-script of my updated example ...&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 21:07:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182890#M48346</guid>
      <dc:creator />
      <dc:date>2009-09-11T21:07:07Z</dc:date>
    </item>
    <item>
      <title>AW:Document Name in the script (version 8.2)</title>
      <link>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182891#M48347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Patricio,&lt;/P&gt;&lt;P&gt;have you tried DocumentName()? This is my example:&lt;/P&gt;&lt;P&gt;LET vDocName = DocumentName();&lt;BR /&gt;&lt;BR /&gt;DocInfo:&lt;BR /&gt;LOAD 'Document Name' as Property&lt;BR /&gt;, '$(vDocName)' as Value&lt;BR /&gt;autogenerate(1);&lt;/P&gt;&lt;P&gt;This works on QV9, try this on QV8.2.&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 22:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182891#M48347</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-09-11T22:23:32Z</dc:date>
    </item>
    <item>
      <title>AW:Document Name in the script (version 8.2)</title>
      <link>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182892#M48348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Ralph,&lt;/P&gt;&lt;P&gt;Yes I have tried it. This is the origin of my problem. DocumentName() worked on my computer but it didn't work when I published on the server. I am looking for something different so I can publish on the server with the same functionality. Please see first post for details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 22:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182892#M48348</guid>
      <dc:creator>patricio</dc:creator>
      <dc:date>2009-09-11T22:33:50Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Document Name in the script (version 8.2)</title>
      <link>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182893#M48349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no idea, you should ask QT support. Maybe this is a bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 22:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182893#M48349</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-09-11T22:41:19Z</dc:date>
    </item>
    <item>
      <title>Document Name in the script (version 8.2)</title>
      <link>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182894#M48350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As QV v9.00 has been available for some time, and v8.50 is now very mature (SR5) I wonder what impediments you have to upgrading from v8.20 to at least v8.50sr5 where we know that DocumentName() is available and works.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;MichaelR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 00:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Document-Name-in-the-script-version-8-2/m-p/182894#M48350</guid>
      <dc:creator>MichaelRobertshaw</dc:creator>
      <dc:date>2009-09-14T00:30:58Z</dc:date>
    </item>
  </channel>
</rss>

