<?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 interesting case with FOR cycle ?! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/interesting-case-with-FOR-cycle/m-p/152500#M29921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Fieldvalue function.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;marker:&lt;BR /&gt;LOAD name,&lt;BR /&gt; number,&lt;BR /&gt; address,&lt;BR /&gt; fullAddress,&lt;BR /&gt; lat,&lt;BR /&gt; lng,&lt;BR /&gt; open,&lt;BR /&gt; bonus&lt;BR /&gt;FROM &lt;C&gt; (XmlSimple, Table is [carto/markers/marker]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;let vCounter = fieldvaluecount('fullAddress');&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for i=1 to $(vCounter) ;&lt;BR /&gt;let vExcelFieldValue = FieldValue('fullAddress',$(i)); //pull the actual URL from position i in the excel file&lt;BR /&gt;&lt;BR /&gt;station:&lt;BR /&gt;LOAD&lt;BR /&gt;@1,&lt;BR /&gt; @2,&lt;BR /&gt; @3 as Lat,&lt;BR /&gt; @4 as Long&lt;BR /&gt;FROM&lt;BR /&gt;[http://maps.google.com/maps/geo?q=$(vExcelFieldValue)+fr&amp;amp;output=csv&amp;amp;oe=utf8&amp;amp;sensor=false&amp;amp;key=ABQIAAAATndsWAV5Q2y7pRRi-22W_hTxw9fvAnrsiYejTsRxd4b0cj9HKxSNCXUxAANaoACDzXWznNLVPto_jA]&lt;BR /&gt;(txt, codepage is 1252, explicit labels, delimiter is ',', msq);&lt;BR /&gt;&lt;BR /&gt;next i ;&lt;BR /&gt;&lt;/C&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;hope it helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2011 21:45:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-09T21:45:49Z</dc:date>
    <item>
      <title>interesting case with FOR cycle ?!</title>
      <link>https://community.qlik.com/t5/QlikView/interesting-case-with-FOR-cycle/m-p/152499#M29920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Imagine a internet site have from 1 to 50 pages, each of them ends with ID=number (1 - 50).&lt;/P&gt;&lt;P&gt;Some of them (for example 4,18,27,43) have the info I need, another don't have it.&lt;/P&gt;&lt;P&gt;So Could you please tell me how to make FOR cycle only for the pages that have the needed info? I've chech all of them and use applymap function to load only from the needed pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. check all pages which have the needed page&lt;/P&gt;&lt;P&gt;2. usinf for a=1 to 50&lt;/P&gt;&lt;P&gt;load ...&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;from a&lt;/P&gt;&lt;P&gt;where applymap ();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example all of the pages have been opened once again that is unwanted and slow down the reload time , so want to load only from the needed page (4,18,27,43)&lt;/P&gt;&lt;P&gt;HOW TO DO THAT? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 21:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/interesting-case-with-FOR-cycle/m-p/152499#M29920</guid>
      <dc:creator>ivan_will</dc:creator>
      <dc:date>2011-03-09T21:34:08Z</dc:date>
    </item>
    <item>
      <title>interesting case with FOR cycle ?!</title>
      <link>https://community.qlik.com/t5/QlikView/interesting-case-with-FOR-cycle/m-p/152500#M29921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Fieldvalue function.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;marker:&lt;BR /&gt;LOAD name,&lt;BR /&gt; number,&lt;BR /&gt; address,&lt;BR /&gt; fullAddress,&lt;BR /&gt; lat,&lt;BR /&gt; lng,&lt;BR /&gt; open,&lt;BR /&gt; bonus&lt;BR /&gt;FROM &lt;C&gt; (XmlSimple, Table is [carto/markers/marker]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;let vCounter = fieldvaluecount('fullAddress');&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for i=1 to $(vCounter) ;&lt;BR /&gt;let vExcelFieldValue = FieldValue('fullAddress',$(i)); //pull the actual URL from position i in the excel file&lt;BR /&gt;&lt;BR /&gt;station:&lt;BR /&gt;LOAD&lt;BR /&gt;@1,&lt;BR /&gt; @2,&lt;BR /&gt; @3 as Lat,&lt;BR /&gt; @4 as Long&lt;BR /&gt;FROM&lt;BR /&gt;[http://maps.google.com/maps/geo?q=$(vExcelFieldValue)+fr&amp;amp;output=csv&amp;amp;oe=utf8&amp;amp;sensor=false&amp;amp;key=ABQIAAAATndsWAV5Q2y7pRRi-22W_hTxw9fvAnrsiYejTsRxd4b0cj9HKxSNCXUxAANaoACDzXWznNLVPto_jA]&lt;BR /&gt;(txt, codepage is 1252, explicit labels, delimiter is ',', msq);&lt;BR /&gt;&lt;BR /&gt;next i ;&lt;BR /&gt;&lt;/C&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;hope it helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 21:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/interesting-case-with-FOR-cycle/m-p/152500#M29921</guid>
      <dc:creator />
      <dc:date>2011-03-09T21:45:49Z</dc:date>
    </item>
    <item>
      <title>interesting case with FOR cycle ?!</title>
      <link>https://community.qlik.com/t5/QlikView/interesting-case-with-FOR-cycle/m-p/152501#M29922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tnx, but in your case it will load all the pages from 1 to 50 ! I need to load only the 4,18,27,43 for example!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 22:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/interesting-case-with-FOR-cycle/m-p/152501#M29922</guid>
      <dc:creator>ivan_will</dc:creator>
      <dc:date>2011-03-09T22:01:42Z</dc:date>
    </item>
    <item>
      <title>interesting case with FOR cycle ?!</title>
      <link>https://community.qlik.com/t5/QlikView/interesting-case-with-FOR-cycle/m-p/152502#M29923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not agree !&lt;/P&gt;&lt;P&gt;Create a lookup table&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;I , Page&lt;/P&gt;&lt;P&gt;1 , 4&lt;/P&gt;&lt;P&gt;2 , 18&lt;/P&gt;&lt;P&gt;3 , 27&lt;/P&gt;&lt;P&gt;4 , 43] ;&lt;/P&gt;&lt;P&gt;Then you can loop only with the pages you want to access&lt;/P&gt;&lt;P&gt;For i=1 to 4 ;&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;let v = FieldValue('Page',$(i));&lt;/PRE&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 22:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/interesting-case-with-FOR-cycle/m-p/152502#M29923</guid>
      <dc:creator />
      <dc:date>2011-03-09T22:09:44Z</dc:date>
    </item>
    <item>
      <title>interesting case with FOR cycle ?!</title>
      <link>https://community.qlik.com/t5/QlikView/interesting-case-with-FOR-cycle/m-p/152503#M29924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, You're right! Thanks a lot! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; It works !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 22:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/interesting-case-with-FOR-cycle/m-p/152503#M29924</guid>
      <dc:creator>ivan_will</dc:creator>
      <dc:date>2011-03-09T22:59:10Z</dc:date>
    </item>
  </channel>
</rss>

