<?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: Variable OnChange trigger not working (v11 sr1 &amp; sr2) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-OnChange-trigger-not-working-v11-sr1-sr2/m-p/468945#M487299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting. I had not interpreted that text as meaning Ajax does not support triggers, but I suppose it could be read that way. Problem is, those triggers do seem to work when triggered by a user action and I'll bet there is a lot of code in production now that expects them to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem you are having is that an event that was was caused by an action does not cascade. That is, a SetVariable action does not trigger an OnChange in the target variable. I though it had always been that way, although I'm surprised that it works in one client and not another. I thought it more of a design issue, in that triggers fired by actions could result in an endless loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contrast that with user typing input into an Input Box.That fires the OnChange for that variable in all clients, which is what I would expect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So...to complicate the subject, my opinion is that variables set by button actions should not fire triggers. And that it's the desktop and IE Plugin clients that are broken. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2013 23:55:25 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2013-01-30T23:55:25Z</dc:date>
    <item>
      <title>Variable OnChange trigger not working (v11 sr1 &amp; sr2)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-OnChange-trigger-not-working-v11-sr1-sr2/m-p/468942#M487296</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;&amp;nbsp; I'm having an issue when trying to fire an OnChange trigger. I've created a button with a "Set Variable" Action. When I click on the button, the variable is set but the onchange trigger isn´t fired.&amp;nbsp; If I set the variable via input box, then it works . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This behavior applies to Ajax interface . Tests were done in desktop version 11 sr1 and sr2 (webview) and server version 11 sr1 (ajax client).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; When using plug-in, no errors was found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have the same problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pablo Labbe&lt;/P&gt;&lt;P&gt;Qlikview Consultant&lt;/P&gt;&lt;P&gt;www.visiongi.com.br&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 20:09:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-OnChange-trigger-not-working-v11-sr1-sr2/m-p/468942#M487296</guid>
      <dc:creator>pablolabbe</dc:creator>
      <dc:date>2013-01-29T20:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Variable OnChange trigger not working (v11 sr1 &amp; sr2)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-OnChange-trigger-not-working-v11-sr1-sr2/m-p/468943#M487297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pablo, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you find any work around for this ? Even I am facing one such issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 11:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-OnChange-trigger-not-working-v11-sr1-sr2/m-p/468943#M487297</guid>
      <dc:creator />
      <dc:date>2013-01-30T11:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variable OnChange trigger not working (v11 sr1 &amp; sr2)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-OnChange-trigger-not-working-v11-sr1-sr2/m-p/468944#M487298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Support told me that feature isn´t supported in Ajax Client.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview Reference Manual (page 895 , V11 sr2) talks about this limitations on the use of macros, but I think it extends to actions too :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;82 Using Macros in QV Documents on the&lt;/P&gt;&lt;P&gt;QV-Server&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;82.3 Macro trigger limitations&lt;/P&gt;&lt;P&gt;The following triggers will work as usual in the QlikView Server environment for all clients, except AJAX&lt;/P&gt;&lt;P&gt;mode which doesn't support event triggers:&lt;/P&gt;&lt;P&gt;Document.OnAnySelect&lt;/P&gt;&lt;P&gt;Field.OnSelect&lt;/P&gt;&lt;P&gt;Field.OnChange&lt;/P&gt;&lt;P&gt;Field.OnUnlock&lt;/P&gt;&lt;P&gt;Document.OnPressMacroButton&lt;/P&gt;&lt;P&gt;Variable.OnChange&lt;/P&gt;&lt;P&gt;Variable.OnInput&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pablo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 14:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-OnChange-trigger-not-working-v11-sr1-sr2/m-p/468944#M487298</guid>
      <dc:creator>pablolabbe</dc:creator>
      <dc:date>2013-01-30T14:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variable OnChange trigger not working (v11 sr1 &amp; sr2)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-OnChange-trigger-not-working-v11-sr1-sr2/m-p/468945#M487299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting. I had not interpreted that text as meaning Ajax does not support triggers, but I suppose it could be read that way. Problem is, those triggers do seem to work when triggered by a user action and I'll bet there is a lot of code in production now that expects them to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem you are having is that an event that was was caused by an action does not cascade. That is, a SetVariable action does not trigger an OnChange in the target variable. I though it had always been that way, although I'm surprised that it works in one client and not another. I thought it more of a design issue, in that triggers fired by actions could result in an endless loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contrast that with user typing input into an Input Box.That fires the OnChange for that variable in all clients, which is what I would expect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So...to complicate the subject, my opinion is that variables set by button actions should not fire triggers. And that it's the desktop and IE Plugin clients that are broken. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 23:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-OnChange-trigger-not-working-v11-sr1-sr2/m-p/468945#M487299</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-01-30T23:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Variable OnChange trigger not working (v11 sr1 &amp; sr2)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-OnChange-trigger-not-working-v11-sr1-sr2/m-p/468946#M487300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks for your answer.&amp;nbsp; It appears to be a mismatch behavior between clients. Very strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Anyway to attend customer requirement I implemented the solution using the IE Plugin. Hope my solution not be based on a design issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Maybe anyone from Qliktech Support could answer this ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Pablo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 13:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-OnChange-trigger-not-working-v11-sr1-sr2/m-p/468946#M487300</guid>
      <dc:creator>pablolabbe</dc:creator>
      <dc:date>2013-01-31T13:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Variable OnChange trigger not working (v11 sr1 &amp; sr2)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-OnChange-trigger-not-working-v11-sr1-sr2/m-p/468947#M487301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pablo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm glad you have a solution for the moment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On further reflection, I think it would make sense if triggers were fired by any user initiated event --&amp;nbsp; like a button click. I don't think triggers should fire when the action was fired by a trigger, that's where the cascading loop problem would come about. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 15:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-OnChange-trigger-not-working-v11-sr1-sr2/m-p/468947#M487301</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-01-31T15:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variable OnChange trigger not working (v11 sr1 &amp; sr2)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-OnChange-trigger-not-working-v11-sr1-sr2/m-p/468948#M487302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've had the same problem, I've contacted Qlikview support that answered me (you can search information lokking for alexandros17 - my username). Qlik told me that for security reasons events are not triggered by a button (only in Ajax, with plugin it works fine).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I worked around the problem moving logic from events of the pagr to events of buttons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 16:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-OnChange-trigger-not-working-v11-sr1-sr2/m-p/468948#M487302</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-01-31T16:08:10Z</dc:date>
    </item>
  </channel>
</rss>

