<?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: Set document title from variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-document-title-from-variable/m-p/1160682#M378399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Document Title expression button is one of those always-broken-features of QlikView. You can put anything in this field, but axpressions won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your second question is a bit contra-productive. QlikView has a very powerful server-based distribution system for its BI applications. All distribution/licensing/usage/management properties in QlikView server are tied to the filename of the QlikView document. You would get into a complete mess rather quickly if documents started changing their names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OTOH, you can easily create some macro code that uses the "ActiveDocument.SaveAs" method to save a copy of the current document under a different name. Consult the APIGuide for an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2016 21:54:41 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2016-07-01T21:54:41Z</dc:date>
    <item>
      <title>Set document title from variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-document-title-from-variable/m-p/1160680#M378397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to set the title of a Qlikview document to the value of a variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking under Settings&amp;gt;Document Properties&amp;gt;General&amp;gt;Title, there is an option to put in an expression, but the title turns to the variable name, not the actual variable value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using version 12 SR1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 20:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-document-title-from-variable/m-p/1160680#M378397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-01T20:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set document title from variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-document-title-from-variable/m-p/1160681#M378398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry - need to rephrase my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to save my document with a variable value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if I had a variable vName=doc_name, I'd like to automatically save the document as "doc_name.qvw".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 20:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-document-title-from-variable/m-p/1160681#M378398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-01T20:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set document title from variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-document-title-from-variable/m-p/1160682#M378399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Document Title expression button is one of those always-broken-features of QlikView. You can put anything in this field, but axpressions won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your second question is a bit contra-productive. QlikView has a very powerful server-based distribution system for its BI applications. All distribution/licensing/usage/management properties in QlikView server are tied to the filename of the QlikView document. You would get into a complete mess rather quickly if documents started changing their names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OTOH, you can easily create some macro code that uses the "ActiveDocument.SaveAs" method to save a copy of the current document under a different name. Consult the APIGuide for an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 21:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-document-title-from-variable/m-p/1160682#M378399</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-07-01T21:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set document title from variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-document-title-from-variable/m-p/1160683#M378400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter - using ActiveDocument.SaveAs did the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 14:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-document-title-from-variable/m-p/1160683#M378400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-11T14:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set document title from variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-document-title-from-variable/m-p/1160684#M378401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set the document title using a macro, variable, and a trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Add the following macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB SetDocumentTitle()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set dp = ActiveDocument.GetProperties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set v = ActiveDocument.Variables("vDocumentTitle")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dp.WindowTitle = v.GetContent.String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.SetProperties dp&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Add a variable vDocumentTitle.&amp;nbsp; It can use any valid expression.&amp;nbsp; If you are using a string constant do not enclose it in parentheses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Add a document event trigger with an external action "Run Macro" and run the macro SetDocumentTitle.&amp;nbsp; I suggest adding the trigger to either the OnOpen, OnPostReload, or OnPostReduceData events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 18:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-document-title-from-variable/m-p/1160684#M378401</guid>
      <dc:creator>jamesdmilne</dc:creator>
      <dc:date>2017-09-18T18:26:17Z</dc:date>
    </item>
  </channel>
</rss>

