<?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: Field API Select Method does not work on complex field in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-Select-Method-does-not-work-on-complex-field/m-p/60559#M868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;That you can acutually do this is unintentional, &lt;A href="https://help.qlik.com/en-US/sense-developer/September2017/Subsystems/APIs/Content/CapabilityAPIs/AppAPI/field-method.htm"&gt;app.field&lt;/A&gt; is only meant to work for actual fields (the parameter is supposed to be a field name), but since getData creates a ListObject it obviously works. Possibly a bug. You will need to keep track of what field to use for selections yourself, not too difficult in your example, but might be worse in the real case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 11:55:29 GMT</pubDate>
    <dc:creator>ErikWetterberg</dc:creator>
    <dc:date>2018-04-05T11:55:29Z</dc:date>
    <item>
      <title>Field API Select Method does not work on complex field</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-Select-Method-does-not-work-on-complex-field/m-p/60558#M867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got the following code:&lt;/P&gt;&lt;P style="color: #000000; font-family: Consolas, 'Courier New', monospace; font-size: 14px;"&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff;"&gt;var&lt;/SPAN&gt; &lt;SPAN style="color: #001080;"&gt;test&lt;/SPAN&gt; = &lt;SPAN style="color: #001080;"&gt;app&lt;/SPAN&gt;.&lt;SPAN style="color: #795e26;"&gt;field&lt;/SPAN&gt;(&lt;SPAN style="color: #a31515;"&gt;"=if(len(someField)&amp;gt;0,anotherField)"&lt;/SPAN&gt;).&lt;SPAN style="color: #795e26;"&gt;getData&lt;/SPAN&gt;();&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #001080;"&gt;test&lt;/SPAN&gt;.&lt;SPAN style="color: #001080;"&gt;OnData&lt;/SPAN&gt;.&lt;SPAN style="color: #795e26;"&gt;bind&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;function&lt;/SPAN&gt;(){&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #001080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #001080;"&gt;rows&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #09885a;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;].&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #795e26;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or another option:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #001080;"&gt;app&lt;/SPAN&gt;.&lt;SPAN style="color: #795e26;"&gt;field&lt;/SPAN&gt;(&lt;SPAN style="color: #a31515;"&gt;"=if(len(&lt;SPAN style="color: #a31515; font-size: 13.3333px;"&gt;someField&lt;/SPAN&gt;)&amp;gt;0,&lt;SPAN style="color: #a31515; font-size: 13.3333px;"&gt;anotherField&lt;/SPAN&gt;)"&lt;/SPAN&gt;).selectValues(["Some val from response"], true, true);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that getData() returns the right collection of values for this expression, but &lt;SPAN lang="en"&gt;none of the select methods work. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Also those methods rise no exception or warnings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Does anybody know what's wrong with my code or Field API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 10:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-Select-Method-does-not-work-on-complex-field/m-p/60558#M867</guid>
      <dc:creator>ikomlyakov1929</dc:creator>
      <dc:date>2018-04-05T10:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Field API Select Method does not work on complex field</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-Select-Method-does-not-work-on-complex-field/m-p/60559#M868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;That you can acutually do this is unintentional, &lt;A href="https://help.qlik.com/en-US/sense-developer/September2017/Subsystems/APIs/Content/CapabilityAPIs/AppAPI/field-method.htm"&gt;app.field&lt;/A&gt; is only meant to work for actual fields (the parameter is supposed to be a field name), but since getData creates a ListObject it obviously works. Possibly a bug. You will need to keep track of what field to use for selections yourself, not too difficult in your example, but might be worse in the real case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 11:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-Select-Method-does-not-work-on-complex-field/m-p/60559#M868</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-04-05T11:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Field API Select Method does not work on complex field</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-Select-Method-does-not-work-on-complex-field/m-p/60560#M869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erik,&lt;/P&gt;&lt;P&gt;Actually, I decide to use Field API instead of &lt;A href="https://help.qlik.com/en-US/sense-developer/September2017/Subsystems/APIs/Content/CapabilityAPIs/AppAPI/searchResults-method.htm"&gt;serchResult &lt;/A&gt;because it gives me an ability to use a expression-like field for filtering in my extension. So this is a kind of situation when I can say that It's a feature - not a bug=)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please give me an advice about the best way to do search and filtering like qlik sense have in their native table component?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QS SEARCH.JPG" class="jive-image image-1" src="/legacyfs/online/198636_QS SEARCH.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-Select-Method-does-not-work-on-complex-field/m-p/60560#M869</guid>
      <dc:creator>ikomlyakov1929</dc:creator>
      <dc:date>2018-04-05T17:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Field API Select Method does not work on complex field</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-Select-Method-does-not-work-on-complex-field/m-p/60561#M870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't really know how the built-in table works, but it looks like it opens a listbox when you click search in the header. You could do that with the visualization API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-Select-Method-does-not-work-on-complex-field/m-p/60561#M870</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-04-05T17:23:15Z</dc:date>
    </item>
  </channel>
</rss>

