<?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: API - How to get the loop working? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/1227735#M391645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll have to figure out where on this web site you can get hold of the maximum number of players available for extraction. Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Mar 2017 16:10:26 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2017-03-17T16:10:26Z</dc:date>
    <item>
      <title>API - How to get the loop working?</title>
      <link>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/1227731#M391641</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 want to go on with a little hobby project in QV.&lt;/P&gt;&lt;P&gt;This is regarding English football and a game called fantasy premier league.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The API I want to work properly in QV is &lt;A href="https://fantasy.premierleague.com/drf/element-summary/1"&gt;https://fantasy.premierleague.com/drf/element-summary/1&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I have the REST connector and have read in the above API.&lt;/P&gt;&lt;P&gt;BUT this is just information about Player 1 in the league (Goalkeeper at Arsenal), hence the 1 at the end of the API URI &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my real question is if somebody could help me out writing a proper loop to get all the player data in the league!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be able to do this I need a working loop that goes from i = 1 to max(element_u0) somehow.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;element_u0 is the Player ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone who can help? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 07:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/1227731#M391641</guid>
      <dc:creator>thomasgrimsby</dc:creator>
      <dc:date>2017-03-17T07:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: API - How to get the loop working?</title>
      <link>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/1227732#M391642</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;&lt;SPAN&gt;On &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://fantasy.premierleague.com/drf/bootstrap" rel="nofollow" target="_blank"&gt;https://fantasy.premierleague.com/drf/bootstrap&lt;/A&gt;&lt;SPAN&gt; you have key named total_players (at this moment value is 4436132). I've found information that there'is more info on this url while you're logged in.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14897554745316598" jivemacro_uid="_14897554745316598"&gt;
&lt;P&gt;let max = 2;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for i=1 to '$(max)'&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; let connectionString = 'Provider=QvRestConnector.exe;url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://fantasy.premierleague.com/drf/element-summary/'&amp;amp;i&amp;amp;';timeout=30;method=GET;autoDetectResponseType=true;keyGenerationStrategy=0;useWindowsAuthentication=false;useCertificate=No;certificateStoreLocation=CurrentUser;certificateStoreName=My;PaginationType=None;XUserId=dWbIXfC;XPassword=WLGRQLA;';" rel="nofollow" target="_blank"&gt;https://fantasy.premierleague.com/drf/element-summary/'&amp;amp;i&amp;amp;';timeout=30;method=GET;autoDetectResponseType=true;keyGenerationStrategy=0;useWindowsAuthentication=false;useCertificate=No;certificateStoreLocation=CurrentUser;certificateStoreName=My;PaginationType=None;XUserId=dWbIXfC;XPassword=WLGRQLA;';&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; CUSTOM CONNECT TO '$(connectionString)';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; RestConnectorMasterTable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SQL SELECT &lt;/P&gt;
&lt;P&gt;&amp;nbsp; "__KEY_root",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (SELECT "id" AS "id_u3",/*...*/"fixture" AS "fixture_u0","opponent_team" AS "opponent_team_u0","__FK_history" FROM "history" FK "__FK_history")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FROM JSON (wrap on) "root" PK "__KEY_root";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [history]:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; $(i) as urlPlayedId, [id_u3],[fixture_u0],[opponent_team_u0],[__FK_history] AS [__KEY_root]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; RESIDENT RestConnectorMasterTable&lt;/P&gt;
&lt;P&gt;&amp;nbsp; WHERE NOT IsNull([__FK_history]);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; DROP TABLE RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;next i;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sample works. I didn't check what will happend when user was removed&amp;nbsp; and url will return 404 reply code &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 13:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/1227732#M391642</guid>
      <dc:creator>mfchmielowski</dc:creator>
      <dc:date>2017-03-17T13:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: API - How to get the loop working?</title>
      <link>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/1227733#M391643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;A href="https://github.com/bobbymond/FantasyPremierLeagueAPI" title="https://github.com/bobbymond/FantasyPremierLeagueAPI"&gt;GitHub - bobbymond/FantasyPremierLeagueAPI: A C# API for accessing data for Fantasy Premier League&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here you've info about api you're using. Maybe you'll find more interesting info there &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 13:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/1227733#M391643</guid>
      <dc:creator>mfchmielowski</dc:creator>
      <dc:date>2017-03-17T13:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: API - How to get the loop working?</title>
      <link>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/1227734#M391644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Michal.&lt;/P&gt;&lt;P&gt;That loop works when we are sure about how many players are in the league system &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But is it possible to return the max(element_u0) somehow so that the script automatically finds all the id's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I now put in max = 100 i will get the 100 first players but if I put in max = 1000 the script fails when it can't find so many players (It ends around 650).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This below script is working but it would be amazing to get a loop that stops properly when all records are found!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;let&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;max&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=100;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;for&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; '$(max)'&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;let&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;connectionString&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN&gt;='Provider=QvRestConnector.exe;url= &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://fantasy.premierleague.com/drf/element-summary/'&amp;amp;" rel="nofollow" target="_blank"&gt;https://fantasy.premierleague.com/drf/element-summary/'&amp;amp;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;i&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;';&lt;BR /&gt; timeout=30;method=GET;autoDetectResponseType=true;keyGenerationStrategy=0;useWindowsAuthentication=false;useCertificate=No;certificateStoreLocation=CurrentUser;certificateStoreName=My;PaginationType=Custom;XUserId=KNLDCcB;XPassword=HeeeWYC;';&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;CUSTOM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;CONNECT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; '$(connectionString)';&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Bla bla bla&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;next&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 14:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/1227734#M391644</guid>
      <dc:creator>thomasgrimsby</dc:creator>
      <dc:date>2017-03-17T14:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: API - How to get the loop working?</title>
      <link>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/1227735#M391645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll have to figure out where on this web site you can get hold of the maximum number of players available for extraction. Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 16:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/1227735#M391645</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-03-17T16:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: API - How to get the loop working?</title>
      <link>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/1227736#M391646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/LazyTarget/FantasyPremierLeagueAPI/tree/master/src/Helpers/WebRetriever/Pages" title="https://github.com/LazyTarget/FantasyPremierLeagueAPI/tree/master/src/Helpers/WebRetriever/Pages"&gt;https://github.com/LazyTarget/FantasyPremierLeagueAPI/tree/master/src/Helpers/WebRetriever/Pages&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;You'll find here some endpoints of api you're using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to fetch info from &lt;A href="https://fantasy.premierleague.com/drf/elements" title="https://fantasy.premierleague.com/drf/elements"&gt;https://fantasy.premierleague.com/drf/elements&lt;/A&gt; You'll find there full players list with ids.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 05:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/1227736#M391646</guid>
      <dc:creator>mfchmielowski</dc:creator>
      <dc:date>2017-03-20T05:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: API - How to get the loop working?</title>
      <link>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/1227737#M391647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again!&lt;/P&gt;&lt;P&gt;Thanks a lot for your answers Michal!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was very useful to look in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://fantasy.premierleague.com/drf/elements" rel="nofollow" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7; text-decoration: underline;" target="_blank"&gt;https://fantasy.premierleague.com/drf/elements&lt;/A&gt; to find how many ID's to use as max.&lt;/P&gt;&lt;P&gt;For now max=653 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I'm just a QlikView user and have not tried Java so how to exactly use a max(ID) insted of typing in the x=653 or 700 when that changes is still a little mystery but not a real problem.&lt;/P&gt;&lt;P&gt;Things are working thanks to you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 09:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/1227737#M391647</guid>
      <dc:creator>thomasgrimsby</dc:creator>
      <dc:date>2017-03-22T09:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: API - How to get the loop working?</title>
      <link>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/2462781#M1225814</link>
      <description>&lt;P&gt;As an addition to this topic, I'm excited to share my latest tutorial on integrating Asana with Qlik Cloud using REST APIs!&lt;/P&gt;
&lt;P&gt;In this step-by-step guide, you'll learn:&lt;BR /&gt;- How to use Asana REST APIs with Postman&lt;BR /&gt;- Creating REST Data Connections in Qlik Cloud&lt;BR /&gt;- Extracting data from Asana and saving as Parquet files&lt;BR /&gt;- Enhancing connections with custom parameters and pagination&lt;/P&gt;
&lt;P&gt;Check out the full video on YouTube:&lt;BR /&gt;&lt;STRONG&gt;Integrate Asana with Qlik Cloud Using REST APIs: A Step-by-Step Guide&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="https://youtu.be/lFwar30BNkQ?si=UZoM_x9L5amdJSnf" target="_blank"&gt;https://youtu.be/lFwar30BNkQ?si=UZoM_x9L5amdJSnf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Mark Costa&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 22:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/API-How-to-get-the-loop-working/m-p/2462781#M1225814</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-06-15T22:10:45Z</dc:date>
    </item>
  </channel>
</rss>

