<?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: Trouble with capability API - field selectValues in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-with-capability-API-field-selectValues/m-p/1647685#M11819</link>
    <description>have you tried like below&lt;BR /&gt;&lt;BR /&gt;app1.field('METRIC DATE.YEAR').selectValues(2016, true, true);&lt;BR /&gt;&lt;BR /&gt;or have you tried with&lt;BR /&gt;selectMatch method ? , is this working ?&lt;BR /&gt;&lt;BR /&gt;or you can provide your js code , may be i can help</description>
    <pubDate>Sat, 16 Nov 2019 17:16:07 GMT</pubDate>
    <dc:creator>agni_gold</dc:creator>
    <dc:date>2019-11-16T17:16:07Z</dc:date>
    <item>
      <title>Trouble with capability API - field selectValues</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-with-capability-API-field-selectValues/m-p/1647627#M11818</link>
      <description>&lt;P&gt;Trying to set up a mashup with two apps and shared filters.&amp;nbsp; There is a listener on the selectionState of the first app like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23796i8A49DCE69BC1C936/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;which sets the field selectValues of the second app.&amp;nbsp; This works for some fields but not all.&amp;nbsp; I looked at one of the problem fields using&lt;/P&gt;&lt;P&gt;app.field('METRIC DATE.YEAR').getData();&lt;/P&gt;&lt;P&gt;compared to:&lt;/P&gt;&lt;P&gt;app1.field('METRIC DATE.YEAR').getData();&lt;/P&gt;&lt;P&gt;and it is identical in both apps.&amp;nbsp; I also tried setting it directly as numeric and text:&lt;/P&gt;&lt;P&gt;app1.field('METRIC DATE.YEAR').selectValues([2016], true, true);&lt;/P&gt;&lt;P&gt;app1.field('METRIC DATE.YEAR').selectValues(['2016'], true, true);&lt;/P&gt;&lt;P&gt;but no luck.&lt;/P&gt;&lt;P&gt;Any ideas on what to try next?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 19:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-with-capability-API-field-selectValues/m-p/1647627#M11818</guid>
      <dc:creator>jgunders</dc:creator>
      <dc:date>2019-11-15T19:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with capability API - field selectValues</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-with-capability-API-field-selectValues/m-p/1647685#M11819</link>
      <description>have you tried like below&lt;BR /&gt;&lt;BR /&gt;app1.field('METRIC DATE.YEAR').selectValues(2016, true, true);&lt;BR /&gt;&lt;BR /&gt;or have you tried with&lt;BR /&gt;selectMatch method ? , is this working ?&lt;BR /&gt;&lt;BR /&gt;or you can provide your js code , may be i can help</description>
      <pubDate>Sat, 16 Nov 2019 17:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-with-capability-API-field-selectValues/m-p/1647685#M11819</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2019-11-16T17:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with capability API - field selectValues</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-with-capability-API-field-selectValues/m-p/1647769#M11820</link>
      <description>&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;app1.field('METRIC DATE.YEAR').selectValues(2016, true, true);&lt;/P&gt;&lt;P&gt;but it throws:&lt;/P&gt;&lt;P&gt;e.forEach is not a function&lt;/P&gt;&lt;P&gt;I attached the source.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 01:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-with-capability-API-field-selectValues/m-p/1647769#M11820</guid>
      <dc:creator>jgunders</dc:creator>
      <dc:date>2019-11-18T01:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with capability API - field selectValues</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-with-capability-API-field-selectValues/m-p/1647779#M11821</link>
      <description>&lt;P&gt;Try with [] since the field name contains spaces:&lt;/P&gt;&lt;P&gt;app1.field(‘[METRIC DATE.YEAR]’)...&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 04:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-with-capability-API-field-selectValues/m-p/1647779#M11821</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2019-11-18T04:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with capability API - field selectValues</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-with-capability-API-field-selectValues/m-p/1648195#M11824</link>
      <description>&lt;P&gt;Thanks for the help with this&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6966"&gt;@ErikWetterberg&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/36318"&gt;@agni_gold&lt;/a&gt;&amp;nbsp;.&amp;nbsp; Turns out it is a problem of text verses numeric.&amp;nbsp; &amp;nbsp;Looks like all the selections from selectionState are text but my selections can be text and numeric&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;.&amp;nbsp; I'm going to force all my shared dimensions to be text.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 21:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-with-capability-API-field-selectValues/m-p/1648195#M11824</guid>
      <dc:creator>jgunders</dc:creator>
      <dc:date>2019-11-18T21:40:44Z</dc:date>
    </item>
  </channel>
</rss>

