<?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: Qlik Mashup API selectValues in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Mashup-API-selectValues/m-p/905601#M3165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need an unique ID for each selectable marker to make this work. Say for example that the user select&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;zip 1111, building AAA&lt;/LI&gt;&lt;LI&gt;zip 1111, building BBB&lt;/LI&gt;&lt;LI&gt;then deselects the first marker, should you deselect zip 1111 or not??&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Or another example, the user selects&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;zip 1111, building AAA&lt;/LI&gt;&lt;LI&gt;zip 2222, building BBB&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If the data now contains also 1111, BBB and/or 2222, AAA they will also be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you instead used a unique id (possibly concatenation of zip + building) you can use just that field for selection and the associative logic will fix the rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I have not misunderstood everything...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jul 2015 06:19:20 GMT</pubDate>
    <dc:creator>ErikWetterberg</dc:creator>
    <dc:date>2015-07-17T06:19:20Z</dc:date>
    <item>
      <title>Qlik Mashup API selectValues</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Mashup-API-selectValues/m-p/905596#M3160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently I have this issue about deselection using selectValues when selection is invalid.&lt;/P&gt;&lt;P&gt;Assuming my extension has 2 dimensions (Zip Code, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Building Name&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's assume some data too:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Zip Code&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Building Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;11111&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;AAA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;11111&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;BBB&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;11111&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;CCC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;22222&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;DDD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;22222&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;EEE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose the user current selection is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Zip Code: 11111&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Building Name: AAA, BBB, CCC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I does is to programmatically select the rest of the data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app.field('Zip Code').selectValues([22222], true, true);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;app.field('Building Name').selectValues(['DDD', 'EEE'], true, true);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Then &lt;SPAN style="font-size: 13.3333330154419px;"&gt;programmatically des&lt;SPAN style="font-size: 13.3333330154419px;"&gt;elect the rest of the data:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;app.field('Zip Code').selectValues([22222], true, true);&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;app.field('&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Building Name&lt;/SPAN&gt;').selectValues(['DDD', 'EEE'], true, true);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The result would be Building Name selection unable to deselect because the deselection of Zip Code has render the current 'DDD' and 'EEE' to be gray out in the selection bar. Repeatedly calling &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;app.field('&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Building Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;').selectValues(['DDD', 'EEE'], true, true);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;has no effect unless I select back Zip Code 22222 to "enable" the Building Name "DDD", "EEE".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;Do you guys have any workaround or even better, the correct way to deselect even when the selection is gray out?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 07:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Mashup-API-selectValues/m-p/905596#M3160</guid>
      <dc:creator>bryan_sng</dc:creator>
      <dc:date>2015-06-26T07:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Mashup API selectValues</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Mashup-API-selectValues/m-p/905597#M3161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Why don't you use app.field('&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Building Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;').clear() ?? Or possibly use &lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;app.field('&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Building Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;').selectExcluded() ??&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Erik&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 13:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Mashup-API-selectValues/m-p/905597#M3161</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2015-07-15T13:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Mashup API selectValues</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Mashup-API-selectValues/m-p/905598#M3162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup, that's exactly what I have done finally but it does require several code changes to use the clear method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously:&lt;/P&gt;&lt;P&gt;1) Get the current selection from custom extension object&lt;/P&gt;&lt;P&gt;2) Append current selection to qlik selection bar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently:&lt;/P&gt;&lt;P&gt;1) Get the current selection from qlik selection bar&lt;/P&gt;&lt;P&gt;2) Get the current selection from custom extenstion object&lt;/P&gt;&lt;P&gt;3) Clear current selection from qlik selection bar&lt;/P&gt;&lt;P&gt;4) Combine #1 and #2 selections together&lt;/P&gt;&lt;P&gt;5) Append #4 selections to qlik selection bar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 01:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Mashup-API-selectValues/m-p/905598#M3162</guid>
      <dc:creator>bryan_sng</dc:creator>
      <dc:date>2015-07-16T01:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Mashup API selectValues</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Mashup-API-selectValues/m-p/905599#M3163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm afraid I don't understand what you are trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your first step is selecting the rest of the data (selectAlternative ??). Does that work as expected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you want to go back to the initial selection? Is that what does not work??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 06:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Mashup-API-selectValues/m-p/905599#M3163</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2015-07-16T06:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Mashup API selectValues</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Mashup-API-selectValues/m-p/905600#M3164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm basically I'm doing a map extension.&lt;/P&gt;&lt;P&gt;User is able to select plotted markers on the map.&lt;/P&gt;&lt;P&gt;When selecting a plotted markers, based on the marker attributes, I will make a selection via selectValues to qlik side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example user now click on a train station in USA, user will see Zip Code 111 and Product ID AAA at qlik selection bar.&lt;/P&gt;&lt;P&gt;If user now decided to deselect the marker, system should remove the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Zip Code 111 and Product ID AAA at qlik selection bar which is perfectly ok now since there is no other selection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if user make another selection 1st before deselecting, say for example another bus station in Canada, user will see Zip Code 111, 999 and Product ID AAA, FFF at qlik selection bar.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;If user now decided to deselect the marker at USA, system should remove the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Zip Code 111 and Product ID AAA at qlik selection bar so that only Zip Code 999 and Product ID FFF remains.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;However this will not work as after executing the following, the value for Product ID AAA will be gray out:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; app.field("Postal Code").selectValues("111", false, true);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;Subsequently executing the following to deselect Product ID AAA will not cause any effect in the selection bar. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&amp;nbsp; app.field("Product ID").selectValues("AAA", false, true);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 03:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Mashup-API-selectValues/m-p/905600#M3164</guid>
      <dc:creator>bryan_sng</dc:creator>
      <dc:date>2015-07-17T03:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Mashup API selectValues</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Mashup-API-selectValues/m-p/905601#M3165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need an unique ID for each selectable marker to make this work. Say for example that the user select&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;zip 1111, building AAA&lt;/LI&gt;&lt;LI&gt;zip 1111, building BBB&lt;/LI&gt;&lt;LI&gt;then deselects the first marker, should you deselect zip 1111 or not??&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Or another example, the user selects&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;zip 1111, building AAA&lt;/LI&gt;&lt;LI&gt;zip 2222, building BBB&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If the data now contains also 1111, BBB and/or 2222, AAA they will also be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you instead used a unique id (possibly concatenation of zip + building) you can use just that field for selection and the associative logic will fix the rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I have not misunderstood everything...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 06:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Mashup-API-selectValues/m-p/905601#M3165</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2015-07-17T06:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Mashup API selectValues</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Mashup-API-selectValues/m-p/905602#M3166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm for your 1st scenario, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;LI&gt;zip 1111, building AAA&lt;/LI&gt;&lt;LI&gt;zip 1111, building BBB&lt;/LI&gt;&lt;LI&gt;then deselects the first marker, should you deselect zip 1111 or not??&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, zip 1111 and building BBB will be selected finally. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your 2nd scenario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;LI&gt;zip 1111, building AAA&lt;/LI&gt;&lt;LI&gt;zip 2222, building BBB&lt;/LI&gt;&lt;/OL&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If the data now contains also 1111, BBB and/or 2222, AAA they will also be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not possible because if the qlik selection bar already contains 1111, BBB and/or 2222, then at the map side, those markers would already be selected so subsequent selection of them will only cause deselection instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally yes I implemented with your unique id strategy and got over the hurdle, thanks a lot Erik!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 07:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Mashup-API-selectValues/m-p/905602#M3166</guid>
      <dc:creator>bryan_sng</dc:creator>
      <dc:date>2015-07-17T07:52:45Z</dc:date>
    </item>
  </channel>
</rss>

