<?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 Button to toggle selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Button-to-toggle-selections/m-p/811949#M286587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wish to design a button which toggles between including and excluding a defined selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whatever selections had already been made, the button would include data where (let's say) Field1 = 'A' and Field2 &amp;lt;&amp;gt; 'B'. When the button was clicked again, it would reverse this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at using Toggle Select and also at Alternate States but I'm not clear whether these do the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have considered having 2 buttons which are displayed conditionally, but this doesn't seem very elegant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas would be welcome.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jan 2015 10:58:05 GMT</pubDate>
    <dc:creator>richard_chilvers</dc:creator>
    <dc:date>2015-01-19T10:58:05Z</dc:date>
    <item>
      <title>Button to toggle selections</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-toggle-selections/m-p/811949#M286587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wish to design a button which toggles between including and excluding a defined selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whatever selections had already been made, the button would include data where (let's say) Field1 = 'A' and Field2 &amp;lt;&amp;gt; 'B'. When the button was clicked again, it would reverse this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at using Toggle Select and also at Alternate States but I'm not clear whether these do the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have considered having 2 buttons which are displayed conditionally, but this doesn't seem very elegant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas would be welcome.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 10:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-toggle-selections/m-p/811949#M286587</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2015-01-19T10:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Button to toggle selections</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-toggle-selections/m-p/811950#M286588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) define a variable in the script: LET vToggle = '1';&lt;/P&gt;&lt;P&gt;2) Add the button: Write in the General Tab -&amp;gt; Text: If(vToggle=1, 'Condition 1', 'Condition 2')&lt;/P&gt;&lt;P&gt;3) in the Action Tab -&amp;gt;External -&amp;gt; Set variable Write in the upper box: vToggle, in the bottom box: If(vToggle=1,2,1)&lt;/P&gt;&lt;P&gt;4) in your chart (or table) write: If(vToggle=1, expression 1 (the one with field1 = A), expression 2 (The one with Field &amp;lt;&amp;gt; B)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 11:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-toggle-selections/m-p/811950#M286588</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-19T11:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Button to toggle selections</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-toggle-selections/m-p/811951#M286589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's a neat way to build a toggle button, and I have used something similar a few times. But what I am struggling to do is find the correct actions within the Button properties.. I can use Select in Field. But I do not know how to base the selection on the value of the toggle variable, vToggle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 11:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-toggle-selections/m-p/811951#M286589</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2015-01-19T11:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Button to toggle selections</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-toggle-selections/m-p/811952#M286590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the field (of select in field) write your field, in the bottom box write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Field&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)='A', '&amp;lt;&amp;gt; B', 'A') &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 11:54:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-toggle-selections/m-p/811952#M286590</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-19T11:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Button to toggle selections</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-toggle-selections/m-p/811953#M286591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, yes that seems to work.&lt;/P&gt;&lt;P&gt;That's a neat trick I have learnt today!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 12:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-toggle-selections/m-p/811953#M286591</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2015-01-19T12:12:23Z</dc:date>
    </item>
  </channel>
</rss>

