<?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 Function Not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-Function-Not-working/m-p/52850#M511176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;for i=0 to i= NoOfRows(tabaleA)-1;&amp;nbsp;&amp;nbsp;&amp;nbsp; should be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;for i=0 to NoOfRows(tabaleA)-1;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2018 15:54:25 GMT</pubDate>
    <dc:creator>m_woolf</dc:creator>
    <dc:date>2018-06-04T15:54:25Z</dc:date>
    <item>
      <title>Loop Function Not working</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Function-Not-working/m-p/52849#M511175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have all the application names and their logs present with the same name folder&amp;nbsp; in TableA and i want to search the logs and read them for all applications . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want my loop to run for each application in tableA and put their stats into TableB where column appu contains path of the log file and ApplicationName1 contain name of the application . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below loop is running once only and giving me details for 1 application . Can anybody please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=0 to i= NoOfRows(tabaleA)-1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//for each file in '$(tabaleA)'&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 rty=Peek('appu',$(i),'tabaleA');&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;tableB:&lt;/P&gt;&lt;P&gt;first 1&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Peek('ApplicationName1',$(i),'tabaleA')&amp;amp;Date(today(),'DD/MM/YYYY hh:mm:ss') &amp;amp; if (FileTime('$(rty)\DocumentLog.txt')&amp;gt;'01/06/2018 13:28:52','Evening','Morning') as PKey,&lt;/P&gt;&lt;P&gt;Date(FileTime('$(rty)\DocumentLog.txt'),'hh:mm:ss') as EndTime,&lt;/P&gt;&lt;P&gt;SubField(@3,' ',2) as startTime,&lt;/P&gt;&lt;P&gt;time((Date(FileTime('$(rty)\DocumentLog.txt'),'hh:mm:ss') - SubField(@3,' ',2)),'hh:mm:ss') as duration,&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;@1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[$(rty)\DocumentLog.txt]&lt;/P&gt;&lt;P&gt;(txt, utf8, no labels, delimiter is '\t', msq);&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;NEXT i;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2018 15:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Function-Not-working/m-p/52849#M511175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-04T15:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Function Not working</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Function-Not-working/m-p/52850#M511176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;for i=0 to i= NoOfRows(tabaleA)-1;&amp;nbsp;&amp;nbsp;&amp;nbsp; should be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;for i=0 to NoOfRows(tabaleA)-1;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2018 15:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Function-Not-working/m-p/52850#M511176</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2018-06-04T15:54:25Z</dc:date>
    </item>
  </channel>
</rss>

