<?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 Nested For Each loop query in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Nested-For-Each-loop-query/m-p/1630001#M46913</link>
    <description>&lt;P&gt;We have a scenario where we are getting number of Ids for different Regions. We need to pass these Id's in URL for one region at the time and We have different URLs for different regions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;abc.com/xyz/Region1/$(ids)/details&lt;/P&gt;&lt;P&gt;We want to pass set of URLs in a for each loop and at the same time pass Ids specific to that region in above URL. How can we write nested loop for this scenario?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2019 11:36:28 GMT</pubDate>
    <dc:creator>rsdhavle</dc:creator>
    <dc:date>2019-10-01T11:36:28Z</dc:date>
    <item>
      <title>Nested For Each loop query</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-For-Each-loop-query/m-p/1630001#M46913</link>
      <description>&lt;P&gt;We have a scenario where we are getting number of Ids for different Regions. We need to pass these Id's in URL for one region at the time and We have different URLs for different regions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;abc.com/xyz/Region1/$(ids)/details&lt;/P&gt;&lt;P&gt;We want to pass set of URLs in a for each loop and at the same time pass Ids specific to that region in above URL. How can we write nested loop for this scenario?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 11:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-For-Each-loop-query/m-p/1630001#M46913</guid>
      <dc:creator>rsdhavle</dc:creator>
      <dc:date>2019-10-01T11:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Nested For Each loop query</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-For-Each-loop-query/m-p/1630056#M46921</link>
      <description>&lt;P&gt;You can use the below code&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Id,Region&lt;/P&gt;&lt;P&gt;1,R1&lt;/P&gt;&lt;P&gt;2,R1&lt;/P&gt;&lt;P&gt;3,R2&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let vNoOfRows=NoOfRows('Table1');&lt;/P&gt;&lt;P&gt;for i=0 to $(vNoOfRows)-1&lt;/P&gt;&lt;P&gt;Let&amp;nbsp; vRegion= Peek('Region',$(i),'Table1');&lt;BR /&gt;Let vID= Peek('Id',$(i),'Table1');&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'abc.com/xyz/$(vRegion)/$(vID)/details' as URL,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from dataSource&lt;/P&gt;&lt;P&gt;next i;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 12:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-For-Each-loop-query/m-p/1630056#M46921</guid>
      <dc:creator>miskinmaz</dc:creator>
      <dc:date>2019-10-01T12:52:38Z</dc:date>
    </item>
  </channel>
</rss>

