<?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 Loop with Variables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Loop-with-Variables/m-p/1423441#M33886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am trying to pull in a limited set of alert information from a set of ATOM feeds.&amp;nbsp; i have a web based XML that i can get the list of feeds from, and i am trying to construct a loop that will extract all of the atom feeds into one table. The loop never changes feed addresses as designed with the variable.&amp;nbsp; i have the full script below (all sources are web based, no qlik files needed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FEEDS:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; title as FEEDTitle,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; countrycode as FEEDCtry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber(countrycode)as CTID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; capAlertFeed,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "capAlertFeed/xml:lang" as FEEDLang, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "link/href" as FEEDLink&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://meteoalarm.eu/ATOM/root.xml" rel="nofollow" target="_blank"&gt;http://meteoalarm.eu/ATOM/root.xml&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(XmlSimple, table is [feed/entry],embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vmaxID = 36;&lt;/P&gt;&lt;P&gt;let vCurrentID = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do while vCurrentID &amp;lt;= vmaxID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CurrentFeed:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;capAlertFeed as CurrentFeed1&lt;/P&gt;&lt;P&gt;resident FEEDS &lt;/P&gt;&lt;P&gt;where (CTID = '$(CurrentID)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vCurrentFeed = peek('CurrentFeed1');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//loading starts here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[cap:areaDesc],&lt;/P&gt;&lt;P&gt;[cap:certainty],&lt;/P&gt;&lt;P&gt;[cap:effective],&lt;/P&gt;&lt;P&gt;[cap:event],&lt;/P&gt;&lt;P&gt;[cap:expires],&lt;/P&gt;&lt;P&gt;[cap:geocode],&lt;/P&gt;&lt;P&gt;[cap:msgType],&lt;/P&gt;&lt;P&gt;[cap:onset],&lt;/P&gt;&lt;P&gt;[cap:sent],&lt;/P&gt;&lt;P&gt;[cap:severity],&lt;/P&gt;&lt;P&gt;[cap:status],&lt;/P&gt;&lt;P&gt;[cap:urgency],&lt;/P&gt;&lt;P&gt;[id],&lt;/P&gt;&lt;P&gt;[link],&lt;/P&gt;&lt;P&gt;[published],&lt;/P&gt;&lt;P&gt;[updated]&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;['$(vCurrentFeed)'](xml);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vCurrentID2 = 1+vCurrentID;&lt;/P&gt;&lt;P&gt;Let vCurrentID = vCurrentID2;&lt;/P&gt;&lt;P&gt;Drop Table CurrentFeed;&lt;/P&gt;&lt;P&gt;Loop;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2017 19:49:32 GMT</pubDate>
    <dc:creator>jheasley</dc:creator>
    <dc:date>2017-12-04T19:49:32Z</dc:date>
    <item>
      <title>Loop with Variables</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-with-Variables/m-p/1423441#M33886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am trying to pull in a limited set of alert information from a set of ATOM feeds.&amp;nbsp; i have a web based XML that i can get the list of feeds from, and i am trying to construct a loop that will extract all of the atom feeds into one table. The loop never changes feed addresses as designed with the variable.&amp;nbsp; i have the full script below (all sources are web based, no qlik files needed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FEEDS:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; title as FEEDTitle,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; countrycode as FEEDCtry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber(countrycode)as CTID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; capAlertFeed,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "capAlertFeed/xml:lang" as FEEDLang, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "link/href" as FEEDLink&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://meteoalarm.eu/ATOM/root.xml" rel="nofollow" target="_blank"&gt;http://meteoalarm.eu/ATOM/root.xml&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(XmlSimple, table is [feed/entry],embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vmaxID = 36;&lt;/P&gt;&lt;P&gt;let vCurrentID = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do while vCurrentID &amp;lt;= vmaxID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CurrentFeed:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;capAlertFeed as CurrentFeed1&lt;/P&gt;&lt;P&gt;resident FEEDS &lt;/P&gt;&lt;P&gt;where (CTID = '$(CurrentID)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vCurrentFeed = peek('CurrentFeed1');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//loading starts here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[cap:areaDesc],&lt;/P&gt;&lt;P&gt;[cap:certainty],&lt;/P&gt;&lt;P&gt;[cap:effective],&lt;/P&gt;&lt;P&gt;[cap:event],&lt;/P&gt;&lt;P&gt;[cap:expires],&lt;/P&gt;&lt;P&gt;[cap:geocode],&lt;/P&gt;&lt;P&gt;[cap:msgType],&lt;/P&gt;&lt;P&gt;[cap:onset],&lt;/P&gt;&lt;P&gt;[cap:sent],&lt;/P&gt;&lt;P&gt;[cap:severity],&lt;/P&gt;&lt;P&gt;[cap:status],&lt;/P&gt;&lt;P&gt;[cap:urgency],&lt;/P&gt;&lt;P&gt;[id],&lt;/P&gt;&lt;P&gt;[link],&lt;/P&gt;&lt;P&gt;[published],&lt;/P&gt;&lt;P&gt;[updated]&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;['$(vCurrentFeed)'](xml);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vCurrentID2 = 1+vCurrentID;&lt;/P&gt;&lt;P&gt;Let vCurrentID = vCurrentID2;&lt;/P&gt;&lt;P&gt;Drop Table CurrentFeed;&lt;/P&gt;&lt;P&gt;Loop;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 19:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-with-Variables/m-p/1423441#M33886</guid>
      <dc:creator>jheasley</dc:creator>
      <dc:date>2017-12-04T19:49:32Z</dc:date>
    </item>
  </channel>
</rss>

