<?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 in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API/m-p/1310687#M7331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are most probably trying to access the data before it is available to you. The developer console provides this data when it is available giving you the possibility to drill down and investigate each row which can seem confusing sometimes. In the code you need to bind the field to a listener and work with the data when it has arrived. E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14912186947653862" jivemacro_uid="_14912186947653862" modifiedtitle="true"&gt;
&lt;P&gt;var data = qlikApp.field("the-field").getData();&lt;/P&gt;
&lt;P&gt;console.log(data); // Will show the data in develop console with rows its length etc&lt;/P&gt;
&lt;P&gt;console.log(data.rows.length); // will most probably show 0 since the data hasn't arrived yet&lt;/P&gt;
&lt;P&gt;data.OnData.bind(&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; function(){&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var len = data.rows.length;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(len); // will show the real size of rows since the data is available&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; len; i++){&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(data.rows&lt;I&gt;.qText + data.rows&lt;I&gt;.qState);&amp;nbsp; // State flag (is the data selected or not)&lt;/I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&amp;nbsp; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Apr 2017 11:37:18 GMT</pubDate>
    <dc:creator>bgk</dc:creator>
    <dc:date>2017-04-03T11:37:18Z</dc:date>
    <item>
      <title>Field API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API/m-p/1310686#M7330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to use QlikSense Field API like this: &lt;A href="http://help.qlik.com/en-US/sense-developer/3.2/Subsystems/APIs/Content/FieldAPI/select-method.htm" style="font-size: 10pt;" title="http://help.qlik.com/en-US/sense-developer/3.2/Subsystems/APIs/Content/FieldAPI/select-method.htm"&gt;select method ‒ Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my&amp;nbsp; code:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/158322_Unbenannt.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is the result in Development Console:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt.PNG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/158323_Unbenannt.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Problem is I can't&amp;nbsp; get acces to the rows Array.&lt;/P&gt;&lt;P&gt;It is undefined, in row 251.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I print "console.log( fields.rows)" I get this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt.PNG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/158324_Unbenannt.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get acces to the Array?&lt;/P&gt;&lt;P&gt;The length is 0, seem like an error to me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 14:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API/m-p/1310686#M7330</guid>
      <dc:creator />
      <dc:date>2017-03-30T14:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Field API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API/m-p/1310687#M7331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are most probably trying to access the data before it is available to you. The developer console provides this data when it is available giving you the possibility to drill down and investigate each row which can seem confusing sometimes. In the code you need to bind the field to a listener and work with the data when it has arrived. E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14912186947653862" jivemacro_uid="_14912186947653862" modifiedtitle="true"&gt;
&lt;P&gt;var data = qlikApp.field("the-field").getData();&lt;/P&gt;
&lt;P&gt;console.log(data); // Will show the data in develop console with rows its length etc&lt;/P&gt;
&lt;P&gt;console.log(data.rows.length); // will most probably show 0 since the data hasn't arrived yet&lt;/P&gt;
&lt;P&gt;data.OnData.bind(&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; function(){&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var len = data.rows.length;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(len); // will show the real size of rows since the data is available&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; len; i++){&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(data.rows&lt;I&gt;.qText + data.rows&lt;I&gt;.qState);&amp;nbsp; // State flag (is the data selected or not)&lt;/I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&amp;nbsp; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 11:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API/m-p/1310687#M7331</guid>
      <dc:creator>bgk</dc:creator>
      <dc:date>2017-04-03T11:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Field API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API/m-p/1310688#M7332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this api in mashup. &lt;/P&gt;&lt;P&gt;Sometimes rows length is coming 0 even after binding and sometimes (with actual length ) it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any solution for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2018 14:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Field-API/m-p/1310688#M7332</guid>
      <dc:creator>satyaprakash</dc:creator>
      <dc:date>2018-10-15T14:00:20Z</dc:date>
    </item>
  </channel>
</rss>

