<?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: Loop through Table of IDs to Load array from Connection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-through-Table-of-IDs-to-Load-array-from-Connection/m-p/1404616#M818858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to this query, I have been given an API where it only brings back the first 30 records and I need to use pagination.&amp;nbsp; Is there any way simple way to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Aug 2017 05:51:00 GMT</pubDate>
    <dc:creator>prees959</dc:creator>
    <dc:date>2017-08-23T05:51:00Z</dc:date>
    <item>
      <title>Loop through Table of IDs to Load array from Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-through-Table-of-IDs-to-Load-array-from-Connection/m-p/1404612#M818854</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 have a resident table of &lt;STRONG&gt;Key_ID&lt;/STRONG&gt;.&amp;nbsp; I also have a REST connection with a url of &lt;SPAN style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #fafafa;"&gt;&lt;STRONG&gt;&lt;A class="jive-link-external-small" href="https://api-mydomain.com/customers/" rel="nofollow" target="_blank"&gt;https://api-mydomain.com/customers/&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #fafafa;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #fafafa;"&gt;I need to create a loop whereby I cycle through each ID in &lt;STRONG style="font-size: 13.3333px;"&gt;Key_ID &lt;/STRONG&gt;and run the REST Connection like so &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #fafafa;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #fafafa;"&gt;First ID 786625555744&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #fafafa;"&gt;&lt;STRONG style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px;"&gt;&lt;SPAN&gt;Connection URL becomes - &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://api-mydomain.com/customers/" rel="nofollow" target="_blank"&gt;https://api-mydomain.com/customers/&lt;/A&gt;&lt;SPAN style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #fafafa;"&gt;786625555744 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #fafafa;"&gt;&lt;STRONG style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #fafafa;"&gt;&lt;STRONG style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;Second ID &lt;SPAN style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #fafafa;"&gt;786625478998 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;&lt;STRONG style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px;"&gt;&lt;SPAN&gt;Connection URL becomes - &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://api-mydomain.com/customers/" rel="nofollow" target="_blank"&gt;https://api-mydomain.com/customers/&lt;/A&gt;&lt;SPAN style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #fafafa;"&gt;786625478998 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;&lt;STRONG style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;&lt;STRONG style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;....and so on until the all the IDs in Key_ID have been used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;I'm guessing I need to use a variable like so : &lt;STRONG style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px;"&gt;&lt;SPAN&gt;Connection URL becomes - &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://api-mydomain.com/customers/" rel="nofollow" target="_blank"&gt;https://api-mydomain.com/customers/&lt;/A&gt;&lt;SPAN style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #fafafa;"&gt;$(varKeyID)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;&lt;STRONG style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;but I am completely unsure of the syntaxt or how to set up such a loop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;Can anyone help please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-size: 12px; background-color: #fafafa; font-family: OpenSans, Helvetica, Arial, sans-serif;"&gt;Phil&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-through-Table-of-IDs-to-Load-array-from-Connection/m-p/1404612#M818854</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through Table of IDs to Load array from Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-through-Table-of-IDs-to-Load-array-from-Connection/m-p/1404613#M818855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example in QlikView, i'm using the REST Api from &lt;A href="https://jsonplaceholder.typicode.com/" title="https://jsonplaceholder.typicode.com"&gt;https://jsonplaceholder.typicode.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The bolded $(i) iterates through the posts in the API, attached an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;let vURL = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://jsonplaceholder.typicode.com/posts/';" rel="nofollow" target="_blank"&gt;https://jsonplaceholder.typicode.com/posts/';&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 1 to 3&lt;/P&gt;&lt;P&gt;CUSTOM CONNECT TO "Provider=QvRestConnector.exe;url=$(vURL)&lt;STRONG&gt;$(i)&lt;/STRONG&gt;;timeout=30;method=GET;autoDetectResponseType=true;keyGenerationStrategy=0;useWindowsAuthentication=false;useCertificate=No;certificateStoreLocation=CurrentUser;certificateStoreName=My;PaginationType=None;XUserId=EMACMDB;XPassword=IQVUBcB;";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RestConnectorMasterTable:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;"userId",&lt;/P&gt;&lt;P&gt;"id",&lt;/P&gt;&lt;P&gt;"title",&lt;/P&gt;&lt;P&gt;"body"&lt;/P&gt;&lt;P&gt;FROM JSON (wrap on) "root";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root]:&lt;/P&gt;&lt;P&gt;LOAD [userId],&lt;/P&gt;&lt;P&gt;[id],&lt;/P&gt;&lt;P&gt;[title],&lt;/P&gt;&lt;P&gt;[body]&lt;/P&gt;&lt;P&gt;RESIDENT RestConnectorMasterTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE RestConnectorMasterTable;&lt;/P&gt;&lt;P&gt;next i;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Felipe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 13:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-through-Table-of-IDs-to-Load-array-from-Connection/m-p/1404613#M818855</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2017-08-16T13:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through Table of IDs to Load array from Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-through-Table-of-IDs-to-Load-array-from-Connection/m-p/1404614#M818856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vLink='http:domain.com\';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDs:&lt;/P&gt;&lt;P&gt;LOAD keyid,&lt;/P&gt;&lt;P&gt;'$(vLink)'&amp;amp; keyid as weblink &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; keyid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1001&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1002&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1003&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 14:21:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-through-Table-of-IDs-to-Load-array-from-Connection/m-p/1404614#M818856</guid>
      <dc:creator>omkarvamsi</dc:creator>
      <dc:date>2017-08-16T14:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through Table of IDs to Load array from Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-through-Table-of-IDs-to-Load-array-from-Connection/m-p/1404615#M818857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you so much for your time!&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 05:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-through-Table-of-IDs-to-Load-array-from-Connection/m-p/1404615#M818857</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2017-08-23T05:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through Table of IDs to Load array from Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-through-Table-of-IDs-to-Load-array-from-Connection/m-p/1404616#M818858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to this query, I have been given an API where it only brings back the first 30 records and I need to use pagination.&amp;nbsp; Is there any way simple way to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 05:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-through-Table-of-IDs-to-Load-array-from-Connection/m-p/1404616#M818858</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2017-08-23T05:51:00Z</dc:date>
    </item>
  </channel>
</rss>

