<?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 Sense API: Loop over values in a field and perform action in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Sense-API-Loop-over-values-in-a-field-and-perform-action/m-p/1587905#M10699</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;With my Javascript extension, I want to loop over a field (i.e. select each value in a field one by one) and then perform an after selecting a value. So, select a value, perform an action, and after finishing this action, the next value should be selected.&lt;/P&gt;
&lt;P&gt;I can select a value using the &lt;A href="https://help.qlik.com/en-US/sense-developer/April2019/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/FieldAPI/select-method.htm" target="_blank" rel="noopener"&gt;select method&lt;/A&gt; of the Field API. However, I don't know how to get all (possible) values of a field.&lt;/P&gt;
&lt;P&gt;So my question: how can I do this? I can imagine I need to fetch the possible values? Or is another method recommended for this problem?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 13 Aug 2021 19:09:32 GMT</pubDate>
    <dc:creator>ernstblaauw</dc:creator>
    <dc:date>2021-08-13T19:09:32Z</dc:date>
    <item>
      <title>Sense API: Loop over values in a field and perform action</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Sense-API-Loop-over-values-in-a-field-and-perform-action/m-p/1587905#M10699</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;With my Javascript extension, I want to loop over a field (i.e. select each value in a field one by one) and then perform an after selecting a value. So, select a value, perform an action, and after finishing this action, the next value should be selected.&lt;/P&gt;
&lt;P&gt;I can select a value using the &lt;A href="https://help.qlik.com/en-US/sense-developer/April2019/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/FieldAPI/select-method.htm" target="_blank" rel="noopener"&gt;select method&lt;/A&gt; of the Field API. However, I don't know how to get all (possible) values of a field.&lt;/P&gt;
&lt;P&gt;So my question: how can I do this? I can imagine I need to fetch the possible values? Or is another method recommended for this problem?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 19:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Sense-API-Loop-over-values-in-a-field-and-perform-action/m-p/1587905#M10699</guid>
      <dc:creator>ernstblaauw</dc:creator>
      <dc:date>2021-08-13T19:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sense API: Loop over values in a field and perform action</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Sense-API-Loop-over-values-in-a-field-and-perform-action/m-p/1589143#M10714</link>
      <description>&lt;P&gt;A bump to make this post a little bit more visible. Is someone able to help me out?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 15:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Sense-API-Loop-over-values-in-a-field-and-perform-action/m-p/1589143#M10714</guid>
      <dc:creator>ernstblaauw</dc:creator>
      <dc:date>2019-06-06T15:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sense API: Loop over values in a field and perform action</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Sense-API-Loop-over-values-in-a-field-and-perform-action/m-p/1603986#M10995</link>
      <description>&lt;P&gt;I also failed to call Capability api, I managed to call only &lt;A href="https://help.qlik.com/en-US/sense-developer/April2019/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Introduction.htm" target="_self"&gt;QRS api&lt;/A&gt;. Example below: (node js)&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var https = require('https');
var fs = require('fs');

var options = {
    hostname: 'demo.test.kz',
    port: 4242,
    path: '/qrs/app/full?xrfkey=0MwkYLXpxHrbkKGu',
    method: 'GET',
    headers: {
        'x-qlik-xrfkey' : '0MwkYLXpxHrbkKGu',
        'x-qlik-xrfkey' : '0MwkYLXpxHrbkKGu',
        'X-Qlik-User' : 'UserDirectory=internal; UserId=sa_repository'
    },
    key: fs.readFileSync("C:\\Users\\...\\client_key.pem"),
    cert: fs.readFileSync("C:\\Users\\...\\client.pem"),
    ca: fs.readFileSync("C:\\Users\\...\\root.pem")
};
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
https.get(options, function(res) {
    var bmpString = "";
    res.on("data", function(data) {
        bmpString += data;
    });
    res.on("close", function() {
      console.log(bmpString)
    });
}).on('error', function(e) {
    console.log("Got error: " + e.message);
});
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 19 Jul 2019 04:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Sense-API-Loop-over-values-in-a-field-and-perform-action/m-p/1603986#M10995</guid>
      <dc:creator>kassyernar</dc:creator>
      <dc:date>2019-07-19T04:20:08Z</dc:date>
    </item>
  </channel>
</rss>

