<?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 How to clear other selections with the Field API? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-clear-other-selections-with-the-Field-API/m-p/1277997#M7005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the QField object and the "select" or "selectValues" methods, but this does not clear other selections outside of the passed array, and if I call the clear() method first, I will re-trigger the the event loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I tell the field to select &lt;STRONG&gt;only&lt;/STRONG&gt; the values I pass in to the method, or to clear, and then select, in a single event?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2016 20:31:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-11-18T20:31:16Z</dc:date>
    <item>
      <title>How to clear other selections with the Field API?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-clear-other-selections-with-the-Field-API/m-p/1277997#M7005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the QField object and the "select" or "selectValues" methods, but this does not clear other selections outside of the passed array, and if I call the clear() method first, I will re-trigger the the event loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I tell the field to select &lt;STRONG&gt;only&lt;/STRONG&gt; the values I pass in to the method, or to clear, and then select, in a single event?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 20:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-clear-other-selections-with-the-Field-API/m-p/1277997#M7005</guid>
      <dc:creator />
      <dc:date>2016-11-18T20:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear other selections with the Field API?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-clear-other-selections-with-the-Field-API/m-p/1277998#M7006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure "toggle" is set to false. It should be by default&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app.field(&amp;lt;field&amp;gt;).selectValues( [&amp;lt;values&amp;gt;] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if you do &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;app.field(&amp;lt;field&amp;gt;).selectValues( [&amp;lt;values&amp;gt;], true )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;then "toggle" is set to true and it will toggle selections, instead of the behavior you are looking for.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;You can also set "toggle" to false explicitly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;app.field(&amp;lt;field&amp;gt;).selectValues( [&amp;lt;values&amp;gt;], false )&lt;/SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 21:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-clear-other-selections-with-the-Field-API/m-p/1277998#M7006</guid>
      <dc:creator>Francis_Kabinoff</dc:creator>
      <dc:date>2016-11-18T21:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear other selections with the Field API?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-clear-other-selections-with-the-Field-API/m-p/1277999#M7007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did have toggle set to "true".&amp;nbsp; However, I am getting a "&lt;SPAN style="color: #c41a16; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;Function not allowed on this object in app modal mode&lt;/SPAN&gt;" error when I try to call selectValues(['MyValue'])?&amp;nbsp; Any ideas how to resolve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: I think this is because the field selection box is open, but I don't see any events other than OnData that I can attach to, and I don't see any way to determine if the "object is in app modal mode" or not inside of the method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 21:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-clear-other-selections-with-the-Field-API/m-p/1277999#M7007</guid>
      <dc:creator />
      <dc:date>2016-11-18T21:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear other selections with the Field API?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-clear-other-selections-with-the-Field-API/m-p/1278000#M7008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, not entirely sure, haven't experienced the problem myself. Maybe using the selectValues method of the Extension API instead of from the Field API would solve your problem? &lt;A href="https://help.qlik.com/en-US/sense-developer/3.1/Subsystems/APIs/Content/ExtensionAPI/selectvalues-method.htm" title="https://help.qlik.com/en-US/sense-developer/3.1/Subsystems/APIs/Content/ExtensionAPI/selectvalues-method.htm"&gt;https://help.qlik.com/en-US/sense-developer/3.1/Subsystems/APIs/Content/ExtensionAPI/selectvalues-method.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 18:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-clear-other-selections-with-the-Field-API/m-p/1278000#M7008</guid>
      <dc:creator>Francis_Kabinoff</dc:creator>
      <dc:date>2016-11-21T18:53:48Z</dc:date>
    </item>
  </channel>
</rss>

