<?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 for loop in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/for-loop/m-p/1869699#M71818</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;Want to read QVD no of rows and add for loop and read the values from that file/QVD&lt;/P&gt;
&lt;P&gt;I have one QvdList.txt file like&lt;BR /&gt;QVDName|Flag&lt;BR /&gt;QVD12.qvd|1&lt;BR /&gt;QVD2.qvd|0&lt;BR /&gt;QVD3.qvd|1&lt;BR /&gt;QVDTest.qvd|0&lt;/P&gt;
&lt;P&gt;want to count the no of rows and apply For loop till the count of Rows and print the values of Field1(QVDName) &amp;amp; Field2(Flag) in variables&lt;/P&gt;
&lt;P&gt;I loaded this .txt file into qlikview and used below code to get the row counts from the table/file-&lt;BR /&gt;Let vCount = NoofRows(TablName/QvdName)-So in this case vCount will be 4.&lt;/P&gt;
&lt;P&gt;So now how we can apply/add For loop till 4 and print the values ?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:25:25 GMT</pubDate>
    <dc:creator>pk</dc:creator>
    <dc:date>2024-11-15T23:25:25Z</dc:date>
    <item>
      <title>for loop</title>
      <link>https://community.qlik.com/t5/App-Development/for-loop/m-p/1869699#M71818</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;Want to read QVD no of rows and add for loop and read the values from that file/QVD&lt;/P&gt;
&lt;P&gt;I have one QvdList.txt file like&lt;BR /&gt;QVDName|Flag&lt;BR /&gt;QVD12.qvd|1&lt;BR /&gt;QVD2.qvd|0&lt;BR /&gt;QVD3.qvd|1&lt;BR /&gt;QVDTest.qvd|0&lt;/P&gt;
&lt;P&gt;want to count the no of rows and apply For loop till the count of Rows and print the values of Field1(QVDName) &amp;amp; Field2(Flag) in variables&lt;/P&gt;
&lt;P&gt;I loaded this .txt file into qlikview and used below code to get the row counts from the table/file-&lt;BR /&gt;Let vCount = NoofRows(TablName/QvdName)-So in this case vCount will be 4.&lt;/P&gt;
&lt;P&gt;So now how we can apply/add For loop till 4 and print the values ?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/for-loop/m-p/1869699#M71818</guid>
      <dc:creator>pk</dc:creator>
      <dc:date>2024-11-15T23:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: for loop</title>
      <link>https://community.qlik.com/t5/App-Development/for-loop/m-p/1869781#M71831</link>
      <description>&lt;P&gt;try this&lt;/P&gt;
&lt;P&gt;TableName:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;QVDName|Flag&lt;BR /&gt;QVD12.qvd|1&lt;BR /&gt;QVD2.qvd|0&lt;BR /&gt;QVD3.qvd|1&lt;BR /&gt;QVDTest.qvd|0&lt;BR /&gt;] (delimiter is '|')&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;Let vCount = NoofRows('TableName');&lt;/P&gt;
&lt;P&gt;FOR i=0 TO vCount-1&lt;/P&gt;
&lt;P&gt;trace $(i);&lt;BR /&gt;LET vQVDName = PEEK('QVDName', $(i), 'TableName');&lt;BR /&gt;LET vFlag = PEEK('Flag', $(i), 'TableName');TRACE vQVDName=$(vQVDName) vFlag=$(vFlag);&lt;/P&gt;
&lt;P&gt;NEXT&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 13:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/for-loop/m-p/1869781#M71831</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2021-12-13T13:26:25Z</dc:date>
    </item>
  </channel>
</rss>

