<?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 error this.genericObject.close is not a function in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-error-this-genericObject-close-is-not-a-function/m-p/1446197#M9191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rikard!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your response. My extension is filter panel with about a 20 dimensions to filter. Some of them are variables. So I would like to get unique values for each dimension with qElemNumber for filtering. As I understand, trying to get all data for each dimension and then get unique - is not an option, because of an amount of data.&lt;/P&gt;&lt;P&gt;I'll try to use Table API. I will write back about results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Sep 2017 09:24:33 GMT</pubDate>
    <dc:creator>ikomlyakov1929</dc:creator>
    <dc:date>2017-09-07T09:24:33Z</dc:date>
    <item>
      <title>Field API error this.genericObject.close is not a function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-error-this-genericObject-close-is-not-a-function/m-p/1446195#M9189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get unique values for current field in extension. That's what I do:&lt;/P&gt;&lt;DIV&gt;&lt;P style="color: #d4d4d4; background-color: #1e1e1e; font-family: Consolas, 'Courier New', monospace; font-size: 14px;"&gt;&lt;/P&gt;&lt;DIV&gt;$scope.backendApi.getDimensionInfos().forEach( &lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;( value, col ) {&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt; data = qlik.currApp().field(value.qGroupFieldDefs[&lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;].toString()).getData();&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #569cd6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var&lt;/SPAN&gt; listener = &lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt; () {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $.each(&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;.rows, &lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;(idx, row) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do smth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data.OnData.unbind(listener);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data.OnData.bind(listener);&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this extension on several sheets. When i first time open app this works well, but when i go to another page, this extension give me the following error:&lt;/P&gt;&lt;P&gt;TypeError: this.genericObject.close is not a function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at e.getData (client.js??1497008912700:66)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at filterTree.js??1497008912700:65&amp;nbsp; &amp;lt;-------that is my extension&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Array.forEach (&amp;lt;anonymous&amp;gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at buildTree (filterTree.js??1497008912700:62)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Object.&amp;lt;anonymous&amp;gt; (filterTree.js??1497008912700:35)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at client.js??1497008912700:3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Array.forEach (&amp;lt;anonymous&amp;gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at a.emit (client.js??1497008912700:3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Object.setState (client.js??1497008912700:18)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at client.js??1497008912700:18&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 13:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-error-this-genericObject-close-is-not-a-function/m-p/1446195#M9189</guid>
      <dc:creator>ikomlyakov1929</dc:creator>
      <dc:date>2017-09-06T13:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Field API error this.genericObject.close is not a function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-error-this-genericObject-close-is-not-a-function/m-p/1446196#M9190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ilya!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem you describe is a known issue to us and we are looking into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at what you are trying to achieve, it feels like that you might be able to use the Table API instead to solve your problem. With the table API you will be able to get information from all the fields that are tied to your extension. The information you get back is also automatically updated when you make selections in your app. Look at the QTable specifically. &lt;A href="http://help.qlik.com/en-US/sense-developer/June2017/Subsystems/APIs/Content/CapabilityAPIs/TableAPI/QTable.htm" title="http://help.qlik.com/en-US/sense-developer/June2017/Subsystems/APIs/Content/CapabilityAPIs/TableAPI/QTable.htm"&gt;QTable ‒ Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully you can find a workaround using qTable instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Rikard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 07:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-error-this-genericObject-close-is-not-a-function/m-p/1446196#M9190</guid>
      <dc:creator>rav</dc:creator>
      <dc:date>2017-09-07T07:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Field API error this.genericObject.close is not a function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-error-this-genericObject-close-is-not-a-function/m-p/1446197#M9191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rikard!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your response. My extension is filter panel with about a 20 dimensions to filter. Some of them are variables. So I would like to get unique values for each dimension with qElemNumber for filtering. As I understand, trying to get all data for each dimension and then get unique - is not an option, because of an amount of data.&lt;/P&gt;&lt;P&gt;I'll try to use Table API. I will write back about results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 09:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-error-this-genericObject-close-is-not-a-function/m-p/1446197#M9191</guid>
      <dc:creator>ikomlyakov1929</dc:creator>
      <dc:date>2017-09-07T09:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Field API error this.genericObject.close is not a function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-error-this-genericObject-close-is-not-a-function/m-p/1446198#M9192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have checked the Table API and found the way to solve my problem. The answer is to create different table(hypercube) for each dimension in extension. Here is code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;$scope.backendApi.getDimensionInfos().forEach( &lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;( value, col ) {&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt; dim = [value.qGroupFieldDefs[&lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;].toString()];&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt; fltr = qlik.currApp().createTable(dim, [], {rows:&lt;SPAN style="color: #b5cea8;"&gt;200&lt;/SPAN&gt;});&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt; listener = &lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt; () {&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;$.each(fltr.qHyperCube.qDataPages[&lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;].qMatrix, &lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;(idx, row) {&lt;/P&gt;&lt;P style="padding-left: 120px;"&gt;//do smth&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;})&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;fltr.OnData.bind(listener)&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" data-avatarid="-1" data-userid="205601" data-username="rav" href="https://community.qlik.com/people/rav" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7;"&gt;Rikard&lt;/A&gt;‌‌!&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 12:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-error-this-genericObject-close-is-not-a-function/m-p/1446198#M9192</guid>
      <dc:creator>ikomlyakov1929</dc:creator>
      <dc:date>2017-09-07T12:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Field API error this.genericObject.close is not a function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-error-this-genericObject-close-is-not-a-function/m-p/1446199#M9193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It's unfortinate that you had to do this workaround but &lt;/SPAN&gt;I'm happy you found a solution. Thanks for posting your solution as it might help others with the same problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 12:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API-error-this-genericObject-close-is-not-a-function/m-p/1446199#M9193</guid>
      <dc:creator>rav</dc:creator>
      <dc:date>2017-09-07T12:49:20Z</dc:date>
    </item>
  </channel>
</rss>

