<?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 avoid doc.SetVariable() triggering a reload of the extension? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-avoid-doc-SetVariable-triggering-a-reload-of-the/m-p/816598#M1240845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are also facing the same issue.&lt;/P&gt;&lt;P&gt;Can you please advice which alternative solution you have designed. Any hint would be helpful. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Sep 2015 13:37:22 GMT</pubDate>
    <dc:creator>AbhijitBansode</dc:creator>
    <dc:date>2015-09-04T13:37:22Z</dc:date>
    <item>
      <title>How to avoid doc.SetVariable() triggering a reload of the extension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-doc-SetVariable-triggering-a-reload-of-the/m-p/816596#M1240839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From within an extension, I try setting a variable. But the variable is casing the whole extension to reload, and run the Qva.AddExtension() again... and again... and again...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The extension is fetching a value form a database; upon load, and on certain user actions. I need to transfer this value back to the QlikView document. And the plan was to set a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.setAccountVariable = function(accountNumber)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var variableName = _self.qlikViewPage.Layout.Text0.text;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var doc = Qv.GetCurrentDocument();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; doc.SetVariable(variableName, accountNumber);&amp;nbsp; // If I comment this line, it "works"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as the SetVariable() is there, the extension keeps reloading forever. &lt;/P&gt;&lt;P&gt;If I comment that line, the extension "works", except of course, it doesn't set the variable that I need it to set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions to how to get out of this problem, please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-doc-SetVariable-triggering-a-reload-of-the/m-p/816596#M1240839</guid>
      <dc:creator>vegard_bakke</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid doc.SetVariable() triggering a reload of the extension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-doc-SetVariable-triggering-a-reload-of-the/m-p/816597#M1240842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For information: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not find a solution to this. And ended up redesigning the solution, so that I don't need to set a variable from the extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF someone knows the answer on how to do this, I would still like to know how. Because I can see the potential need for setting a variable from an extension arise again. Without necessarily having to trigger a reload of the extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vegard &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 07:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-doc-SetVariable-triggering-a-reload-of-the/m-p/816597#M1240842</guid>
      <dc:creator>vegard_bakke</dc:creator>
      <dc:date>2014-12-03T07:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid doc.SetVariable() triggering a reload of the extension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-doc-SetVariable-triggering-a-reload-of-the/m-p/816598#M1240845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are also facing the same issue.&lt;/P&gt;&lt;P&gt;Can you please advice which alternative solution you have designed. Any hint would be helpful. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 13:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-doc-SetVariable-triggering-a-reload-of-the/m-p/816598#M1240845</guid>
      <dc:creator>AbhijitBansode</dc:creator>
      <dc:date>2015-09-04T13:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid doc.SetVariable() triggering a reload of the extension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-doc-SetVariable-triggering-a-reload-of-the/m-p/816599#M1240849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if (&amp;nbsp; window.treeData==undefined){&lt;/P&gt;&lt;P&gt; var treeData = DATA.children[0]&lt;/P&gt;&lt;P&gt; window.treeData=treeData&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;some code&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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 10:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-doc-SetVariable-triggering-a-reload-of-the/m-p/816599#M1240849</guid>
      <dc:creator />
      <dc:date>2015-09-10T10:47:00Z</dc:date>
    </item>
  </channel>
</rss>

