<?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 Two triggers on one button? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Two-triggers-on-one-button/m-p/506383#M189307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a button "per month/ per day" in most of my diagrams that is used to switch dimensions ("day" or "month")&lt;/P&gt;&lt;P&gt;=&amp;gt; There is a binary variable "v_per_day" for that purpiose that is either 1 or -1&lt;/P&gt;&lt;P&gt;=&amp;gt; The formulas are different and dependent on that variable&lt;/P&gt;&lt;P&gt;=&amp;gt; The button just multiplies the current value of the variable with -1 and sets that as new value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; I have one additional trigger on the button, that is to take off the selection on the week which wouldn't make sense with the dimension "month"&lt;/P&gt;&lt;P&gt;=&amp;gt;=&amp;gt; Thus, when that button is pressed, one usually sees the twelve months of the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; Now I'd like to have one more trigger, that is, however, only activated when the current dimension is "month" - I'd like then to put the week-selection back on when the user presses that button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; However, I can't seem to put on the button two actions depending on the variable (take off the week-selection when "v_per_day" is 1 &amp;lt;-&amp;gt; when "v_per_day" is -1, put it back on)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody give me a hint how, if at all, that is possible?&lt;/P&gt;&lt;P&gt;The only alternative I can think of would be to use two buttons on top of each other - but since I have that button in every single diagram in every one of my apps, that would be quite a task...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Oct 2013 14:17:42 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2013-10-22T14:17:42Z</dc:date>
    <item>
      <title>Two triggers on one button?</title>
      <link>https://community.qlik.com/t5/QlikView/Two-triggers-on-one-button/m-p/506383#M189307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a button "per month/ per day" in most of my diagrams that is used to switch dimensions ("day" or "month")&lt;/P&gt;&lt;P&gt;=&amp;gt; There is a binary variable "v_per_day" for that purpiose that is either 1 or -1&lt;/P&gt;&lt;P&gt;=&amp;gt; The formulas are different and dependent on that variable&lt;/P&gt;&lt;P&gt;=&amp;gt; The button just multiplies the current value of the variable with -1 and sets that as new value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; I have one additional trigger on the button, that is to take off the selection on the week which wouldn't make sense with the dimension "month"&lt;/P&gt;&lt;P&gt;=&amp;gt;=&amp;gt; Thus, when that button is pressed, one usually sees the twelve months of the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; Now I'd like to have one more trigger, that is, however, only activated when the current dimension is "month" - I'd like then to put the week-selection back on when the user presses that button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; However, I can't seem to put on the button two actions depending on the variable (take off the week-selection when "v_per_day" is 1 &amp;lt;-&amp;gt; when "v_per_day" is -1, put it back on)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody give me a hint how, if at all, that is possible?&lt;/P&gt;&lt;P&gt;The only alternative I can think of would be to use two buttons on top of each other - but since I have that button in every single diagram in every one of my apps, that would be quite a task...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 14:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-triggers-on-one-button/m-p/506383#M189307</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-10-22T14:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Two triggers on one button?</title>
      <link>https://community.qlik.com/t5/QlikView/Two-triggers-on-one-button/m-p/506384#M189308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a 'Clear Field' action to your button, and in the Field specify 'if(v_per_day=1,'Week')'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Add another 'Select in Field' action - in Field specify 'if(v_per_day=-1,'Week')', and whatever value you want in the Search string box.&lt;/P&gt;&lt;P&gt;&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, 22 Oct 2013 14:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-triggers-on-one-button/m-p/506384#M189308</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2013-10-22T14:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Two triggers on one button?</title>
      <link>https://community.qlik.com/t5/QlikView/Two-triggers-on-one-button/m-p/506385#M189309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just forgot the inverted commas.&lt;/P&gt;&lt;P&gt;Now it works just fine.&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;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 14:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-triggers-on-one-button/m-p/506385#M189309</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-10-22T14:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Two triggers on one button?</title>
      <link>https://community.qlik.com/t5/QlikView/Two-triggers-on-one-button/m-p/506386#M189310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marvellous - glad to be of service &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 14:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-triggers-on-one-button/m-p/506386#M189310</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2013-10-22T14:33:57Z</dc:date>
    </item>
  </channel>
</rss>

