<?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: How to get a fields numerical values in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-get-a-fields-numerical-values/m-p/1285268#M7074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guessing your issue here a little bit so bear with me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you write that you can't access them do you know if they are available when calling upon them? The getData() method will return them when a notification of OnData has been triggered&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/sense-developer/3.2/Subsystems/APIs/Content/MashupAPI/Methods/getData-method.htm" title="http://help.qlik.com/en-US/sense-developer/3.2/Subsystems/APIs/Content/MashupAPI/Methods/getData-method.htm"&gt;getData method ‒ Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to ensure that you get valid data you need to bind a listener on OnData the field. Example:&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_14908849468651050" jivemacro_uid="_14908849468651050" modifiedtitle="true"&gt;
&lt;P&gt;var data = qlikApp.field("the-field").getData();&lt;/P&gt;
&lt;P&gt;data.OnData.bind(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; function(){&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; var len = data.rows.length;&lt;/SPAN&gt;&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++){&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; console.log(data.rows&lt;I&gt;.qNum);&lt;/I&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; console.log(data.rows&lt;I&gt;.qText);&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2017 14:47:58 GMT</pubDate>
    <dc:creator>bgk</dc:creator>
    <dc:date>2017-03-30T14:47:58Z</dc:date>
    <item>
      <title>How to get a fields numerical values</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-get-a-fields-numerical-values/m-p/1285267#M7073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a mashup I created I need the numerical field values for selection handling in js.&lt;/P&gt;&lt;P&gt;I am able to access a fields data via the &lt;STRONG&gt;getData()&lt;/STRONG&gt; method. When inspecting the returned object I can find the &lt;STRONG&gt;qNum&lt;/STRONG&gt; and &lt;STRONG&gt;qText&lt;/STRONG&gt; values in the &lt;STRONG&gt;.rows&lt;/STRONG&gt; element, but unfortunately I can not access them.&lt;/P&gt;&lt;P&gt;Is it possible to get these values via getData() or is there another way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In particular I am interested in a dates numerical representation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 13:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-get-a-fields-numerical-values/m-p/1285267#M7073</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-27T13:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a fields numerical values</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-get-a-fields-numerical-values/m-p/1285268#M7074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guessing your issue here a little bit so bear with me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you write that you can't access them do you know if they are available when calling upon them? The getData() method will return them when a notification of OnData has been triggered&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/sense-developer/3.2/Subsystems/APIs/Content/MashupAPI/Methods/getData-method.htm" title="http://help.qlik.com/en-US/sense-developer/3.2/Subsystems/APIs/Content/MashupAPI/Methods/getData-method.htm"&gt;getData method ‒ Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to ensure that you get valid data you need to bind a listener on OnData the field. Example:&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_14908849468651050" jivemacro_uid="_14908849468651050" modifiedtitle="true"&gt;
&lt;P&gt;var data = qlikApp.field("the-field").getData();&lt;/P&gt;
&lt;P&gt;data.OnData.bind(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; function(){&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; var len = data.rows.length;&lt;/SPAN&gt;&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++){&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; console.log(data.rows&lt;I&gt;.qNum);&lt;/I&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; console.log(data.rows&lt;I&gt;.qText);&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 14:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-get-a-fields-numerical-values/m-p/1285268#M7074</guid>
      <dc:creator>bgk</dc:creator>
      <dc:date>2017-03-30T14:47:58Z</dc:date>
    </item>
  </channel>
</rss>

