<?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: Unable to set variable using macro or Set variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unable-to-set-variable-using-macro-or-Set-variable/m-p/775362#M274927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The actions in the list are started in the order given, but not necessarily finished in that order.&lt;/P&gt;&lt;P&gt;I'm guessing the SetVariable action is very quick to execute whereas starting a macro contains a lot of overhead which leads to the SetVariable being finished before the macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2015 14:28:39 GMT</pubDate>
    <dc:creator>kji</dc:creator>
    <dc:date>2015-02-10T14:28:39Z</dc:date>
    <item>
      <title>Unable to set variable using macro or Set variable</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-set-variable-using-macro-or-Set-variable/m-p/775360#M274925</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 am trying to run a macro &amp;amp; set a variable, both the actions in one button,one after the other @ a single click.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;When I set the variable first &amp;amp; then run the macro, it works fine.&lt;/LI&gt;&lt;LI&gt;but when I run macro first &amp;amp; then set variable, only the macro executes &amp;amp; variable setting doesnt takes place.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the access point with the (1) approach when I set variable &amp;amp; then run the macro, both the events take place &amp;amp; after a couple of seconds of time the variable resets itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please explain this unstable behaviour ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the file for reference which consits a button named "Hello" which is shown &amp;amp; hidden when the other buttons are clicked,&lt;/P&gt;&lt;P&gt;Qlikview version 11.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swapneel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 09:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-set-variable-using-macro-or-Set-variable/m-p/775360#M274925</guid>
      <dc:creator />
      <dc:date>2015-02-10T09:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set variable using macro or Set variable</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-set-variable-using-macro-or-Set-variable/m-p/775361#M274926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code set values to an exists variable but creates none - therefore the attempt to set a value to a not exists variable must fail - you could create a new variable with such a statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.CreateVariable "MyVar"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 13:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-set-variable-using-macro-or-Set-variable/m-p/775361#M274926</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-02-10T13:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set variable using macro or Set variable</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-set-variable-using-macro-or-Set-variable/m-p/775362#M274927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The actions in the list are started in the order given, but not necessarily finished in that order.&lt;/P&gt;&lt;P&gt;I'm guessing the SetVariable action is very quick to execute whereas starting a macro contains a lot of overhead which leads to the SetVariable being finished before the macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 14:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-set-variable-using-macro-or-Set-variable/m-p/775362#M274927</guid>
      <dc:creator>kji</dc:creator>
      <dc:date>2015-02-10T14:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set variable using macro or Set variable</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-set-variable-using-macro-or-Set-variable/m-p/775363#M274928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;Thanks for your quick replies &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;@John Idh: I tried setting the value of variable using macro also, still it results in same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually when a reload or a partial reload takes place, the values of the variables gets reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt; In the qvw, go to the document properties, in the &lt;STRONG&gt;Variables&lt;/STRONG&gt; tab, selecting each variable, check the check box saying '&lt;STRONG&gt;Include&lt;/STRONG&gt; &lt;STRONG&gt;in&lt;/STRONG&gt; &lt;STRONG&gt;Bookmarks&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz refer attached image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Swapneel&lt;IMG alt="VariableSetting.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/77579_VariableSetting.PNG" style="height: 536px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 03:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-set-variable-using-macro-or-Set-variable/m-p/775363#M274928</guid>
      <dc:creator />
      <dc:date>2015-02-11T03:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set variable using macro or Set variable</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-set-variable-using-macro-or-Set-variable/m-p/775364#M274929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What has your question to do with your solution? It's far away from be the same ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 06:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-set-variable-using-macro-or-Set-variable/m-p/775364#M274929</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-02-11T06:04:10Z</dc:date>
    </item>
  </channel>
</rss>

