<?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: Negation use of Select and ToggleSelect in Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Negation-use-of-Select-and-ToggleSelect-in-Macro/m-p/1124495#M907162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;m w -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did something similar in my solution but in a Action instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was unable to get the SelectExcluded to work properly in the macro:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; ActiveDocument.Fields("NAME").Select&amp;nbsp; "A"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; ActiveDocument.Fields("NAME").ToggleSelect "B"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; &lt;STRONG&gt;ActiveDocument.Fields("NAME").SelectExcluded&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I am using the syntax incorrectly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Conor &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2016 14:35:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-28T14:35:33Z</dc:date>
    <item>
      <title>Negation use of Select and ToggleSelect in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Negation-use-of-Select-and-ToggleSelect-in-Macro/m-p/1124491#M907158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to work with onOpen doucment Event trigger that will run a macro - This macro will select certain fields. I am having an issue to try to find the correct logic or syntax to give me the general outcome I am looking to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;What I'm looking to do&lt;/SPAN&gt;: I want to Negate 2 selections ("A" &amp;amp;&amp;amp; "B"). So that within my document the current selection object will show the negation == NOT A, B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;## This would select both "A" &amp;amp; "B" on document open.&lt;/P&gt;&lt;P&gt;## But is there syntax like Select Not "A" &amp;amp; "B"?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;OnOpen [Event] --triggers--&amp;gt; Run Macro --calls--&amp;gt; Sub openSelections&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sub openSelections&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;.........&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt; ActiveDocument.Fields("NAME").Select&amp;nbsp; "A"&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt; ActiveDocument.Fields("NAME").ToggleSelect "B"&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;.........&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone assist in the syntax I'm looking for? I am looking for a macro solution to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Conor F.&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/Negation-use-of-Select-and-ToggleSelect-in-Macro/m-p/1124491#M907158</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Negation use of Select and ToggleSelect in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Negation-use-of-Select-and-ToggleSelect-in-Macro/m-p/1124492#M907159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you just do SelectExcluded after your two lines?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 19:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Negation-use-of-Select-and-ToggleSelect-in-Macro/m-p/1124492#M907159</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2016-06-27T19:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Negation use of Select and ToggleSelect in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Negation-use-of-Select-and-ToggleSelect-in-Macro/m-p/1124493#M907160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it have to be a macro? I would advise using just Actions instead of possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select in Field:&amp;nbsp; (A|B)&lt;/P&gt;&lt;P&gt;Select Excluded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 19:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Negation-use-of-Select-and-ToggleSelect-in-Macro/m-p/1124493#M907160</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-06-27T19:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Negation use of Select and ToggleSelect in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Negation-use-of-Select-and-ToggleSelect-in-Macro/m-p/1124494#M907161</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;I have decided to go your suggested route and make them Actions instead. However the compound select did not work in my case so I applied a toggle select instead. The compound select did not like the searches having multiple word strings like: ('Seller A'|'Buyer A').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My final solution was:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Select in Field: Field = Name; Search = 'A'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Toggle Select: Field = Name; Search = 'B'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Select Excluded: Field = Name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Conor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 14:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Negation-use-of-Select-and-ToggleSelect-in-Macro/m-p/1124494#M907161</guid>
      <dc:creator />
      <dc:date>2016-06-28T14:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Negation use of Select and ToggleSelect in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Negation-use-of-Select-and-ToggleSelect-in-Macro/m-p/1124495#M907162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;m w -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did something similar in my solution but in a Action instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was unable to get the SelectExcluded to work properly in the macro:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; ActiveDocument.Fields("NAME").Select&amp;nbsp; "A"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; ActiveDocument.Fields("NAME").ToggleSelect "B"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; &lt;STRONG&gt;ActiveDocument.Fields("NAME").SelectExcluded&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I am using the syntax incorrectly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Conor &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 14:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Negation-use-of-Select-and-ToggleSelect-in-Macro/m-p/1124495#M907162</guid>
      <dc:creator />
      <dc:date>2016-06-28T14:35:33Z</dc:date>
    </item>
  </channel>
</rss>

