<?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: for each loop on a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/for-each-loop-on-a-field/m-p/1041277#M638384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for answer.&lt;/P&gt;&lt;P&gt;Sorry I forgot the mention he point.&lt;/P&gt;&lt;P&gt;I want to drop the table as soon as the field is set to a list variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Mar 2016 17:04:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-22T17:04:10Z</dc:date>
    <item>
      <title>for each loop on a field</title>
      <link>https://community.qlik.com/t5/QlikView/for-each-loop-on-a-field/m-p/1041274#M638381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be possible to use "for each" loop on a field of a table?&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vfileList = &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Some_Kind_of_Function&lt;/STRONG&gt;('fieldName'); //fieldName is a field of a table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;for each vfile in $vfileList&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do something....&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 23:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-each-loop-on-a-field/m-p/1041274#M638381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-21T23:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: for each loop on a field</title>
      <link>https://community.qlik.com/t5/QlikView/for-each-loop-on-a-field/m-p/1041275#M638382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this code pattern:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i = 0 To NoOfRows('tableName') - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vVal = Peek('fieldName', i, 'tableName');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something ....&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit - added the '-1'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 05:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-each-loop-on-a-field/m-p/1041275#M638382</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-03-22T05:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: for each loop on a field</title>
      <link>https://community.qlik.com/t5/QlikView/for-each-loop-on-a-field/m-p/1041276#M638383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please explain the scenario?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load&amp;nbsp; &lt;STRONG&gt;Field1&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field 2&lt;/P&gt;&lt;P&gt;From Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vFieldValueCount = &lt;SPAN style="font-size: 13.3333px;"&gt;FieldValueCount ('&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Field1&lt;/STRONG&gt;&lt;/SPAN&gt;');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i=1 to $(&lt;SPAN style="font-size: 13.3333px;"&gt;vFieldValueCount&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vFieldValue = FieldValue('&lt;STRONG style="font-size: 13.3333px;"&gt;Field1&lt;/STRONG&gt;',$(i));&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>Tue, 22 Mar 2016 05:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-each-loop-on-a-field/m-p/1041276#M638383</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-22T05:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: for each loop on a field</title>
      <link>https://community.qlik.com/t5/QlikView/for-each-loop-on-a-field/m-p/1041277#M638384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for answer.&lt;/P&gt;&lt;P&gt;Sorry I forgot the mention he point.&lt;/P&gt;&lt;P&gt;I want to drop the table as soon as the field is set to a list variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 17:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-each-loop-on-a-field/m-p/1041277#M638384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-22T17:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: for each loop on a field</title>
      <link>https://community.qlik.com/t5/QlikView/for-each-loop-on-a-field/m-p/1041278#M638385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, so add the line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table &lt;EM&gt;tablename;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;What precisely do you mean by &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"list variable"?&lt;/SPAN&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 10:44:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-each-loop-on-a-field/m-p/1041278#M638385</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-03-23T10:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: for each loop on a field</title>
      <link>https://community.qlik.com/t5/QlikView/for-each-loop-on-a-field/m-p/1041279#M638386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Data:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Field1&lt;/STRONG&gt;,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field 2&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vFieldValueCount = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FieldValueCount ('&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Field1&lt;/STRONG&gt;&lt;/SPAN&gt;');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For i=1 to $(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vFieldValueCount&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vFieldValue = FieldValue('&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Field1&lt;/STRONG&gt;',$(i));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Next i&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;drop table &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Data;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 10:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-each-loop-on-a-field/m-p/1041279#M638386</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-23T10:47:25Z</dc:date>
    </item>
  </channel>
</rss>

