<?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: Button Toggle Field A, B Or None in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Button-Toggle-Field-A-B-Or-None/m-p/1022555#M929692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's quite magnificent!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't know '-1' is used for non-selection and only had a vague idea over GetFieldSelections use so that's a great little example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Mar 2016 11:54:09 GMT</pubDate>
    <dc:creator>rebelfox</dc:creator>
    <dc:date>2016-03-18T11:54:09Z</dc:date>
    <item>
      <title>Button Toggle Field A, B Or None</title>
      <link>https://community.qlik.com/t5/QlikView/Button-Toggle-Field-A-B-Or-None/m-p/1022552#M929689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to set up a Button that can toggle three possible selections on the same field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Field = a value of 'A'&lt;/P&gt;&lt;P&gt;2) Field = a value of 'B'&lt;/P&gt;&lt;P&gt;3) Field Clear ( i.e. no selection )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do this with a list box but a button just looks better.&lt;/P&gt;&lt;P&gt;However I have not been able to find a combination that does all three on one button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can add 'Select In Field' and set the Search String to =if(MyField=A,B,A) but this just toggles between A and B.&lt;/P&gt;&lt;P&gt;I can do the same thing by&amp;nbsp; adding two Toggle Select entries.&amp;nbsp; One where the Search String is equal to 'A' and one where it is equal to 'B' but I can't figure out how to add the third option of no selection.&amp;nbsp; I tried adding a third 'Clear Field' action but this takes priority over the two Toggles for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody any ideas?&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>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-Toggle-Field-A-B-Or-None/m-p/1022552#M929689</guid>
      <dc:creator>rebelfox</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Button Toggle Field A, B Or None</title>
      <link>https://community.qlik.com/t5/QlikView/Button-Toggle-Field-A-B-Or-None/m-p/1022553#M929690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have not tested it, but may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(MyField = 'A', 'B', If(MyField = 'B', '', 'A'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 08:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-Toggle-Field-A-B-Or-None/m-p/1022553#M929690</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-18T08:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Button Toggle Field A, B Or None</title>
      <link>https://community.qlik.com/t5/QlikView/Button-Toggle-Field-A-B-Or-None/m-p/1022554#M929691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try this expression in "Select in Field":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(&lt;/P&gt;&lt;P&gt;IsNull(GetFieldSelections(MyField))=-1,'A',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((GetFieldSelections(MyField))='A','B'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached QVW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 11:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-Toggle-Field-A-B-Or-None/m-p/1022554#M929691</guid>
      <dc:creator />
      <dc:date>2016-03-18T11:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Button Toggle Field A, B Or None</title>
      <link>https://community.qlik.com/t5/QlikView/Button-Toggle-Field-A-B-Or-None/m-p/1022555#M929692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's quite magnificent!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't know '-1' is used for non-selection and only had a vague idea over GetFieldSelections use so that's a great little example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 11:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-Toggle-Field-A-B-Or-None/m-p/1022555#M929692</guid>
      <dc:creator>rebelfox</dc:creator>
      <dc:date>2016-03-18T11:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Button Toggle Field A, B Or None</title>
      <link>https://community.qlik.com/t5/QlikView/Button-Toggle-Field-A-B-Or-None/m-p/1022556#M929693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 14:40:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-Toggle-Field-A-B-Or-None/m-p/1022556#M929693</guid>
      <dc:creator>rebelfox</dc:creator>
      <dc:date>2016-03-28T14:40:58Z</dc:date>
    </item>
  </channel>
</rss>

