<?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 Looping in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Looping-in-script/m-p/295679#M705884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eliano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, what you tried is clear but what you want is not. can you explain with an exmple what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp; tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2012 16:40:22 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2012-02-17T16:40:22Z</dc:date>
    <item>
      <title>Looping in script</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-in-script/m-p/295678#M705882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi People,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm tring to loop in the script and i'm founding a few erros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load ID&lt;/P&gt;&lt;P&gt;From (...);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// ID is a filed name with ID codes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Them i want to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=1 to noOfRows('tab1')&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let a=fieldvalue(ID,i);&lt;/P&gt;&lt;P&gt;Load A&lt;/P&gt;&lt;P&gt;from (..... $(a).xlsx) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having problems with this so a also tried to numerate the xlsx files from 1 to 10 and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=1 to 10&lt;/P&gt;&lt;P&gt;Load A&lt;/P&gt;&lt;P&gt;from (...$(i).xlsx) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and didnt work as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eliano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 16:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-in-script/m-p/295678#M705882</guid>
      <dc:creator />
      <dc:date>2012-02-17T16:13:40Z</dc:date>
    </item>
    <item>
      <title>Looping in script</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-in-script/m-p/295679#M705884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eliano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, what you tried is clear but what you want is not. can you explain with an exmple what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp; tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 16:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-in-script/m-p/295679#M705884</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2012-02-17T16:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Looping in script</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-in-script/m-p/295680#M705886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eliano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basic syntax that you need to use is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i = 1 to NoOfRows('tab1')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET a = fieldvalue('ID', $(i)) ;&lt;/P&gt;&lt;P&gt;// ENTER YOUR CODE HERE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both of your examples you dont have the NEXT statement. Also remember that you need to use the dollar expansion around your variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 16:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-in-script/m-p/295680#M705886</guid>
      <dc:creator />
      <dc:date>2012-02-24T16:54:53Z</dc:date>
    </item>
    <item>
      <title>Looping in script</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-in-script/m-p/295681#M705888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry about the delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem, as you mencioned was with the next operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for both of you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 15:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-in-script/m-p/295681#M705888</guid>
      <dc:creator />
      <dc:date>2012-03-20T15:24:12Z</dc:date>
    </item>
  </channel>
</rss>

