<?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 Dynamic script for file path in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-script-for-file-path/m-p/163774#M36730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;Hi Community,&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;I have little problem creating dynamic path for my application. I want to have a dynamic script which will pull the xyz.log file from each path where the folder is just changing. Please see below for the sample paths.&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;The values for variables (i.e. India,US,UK etc.) are coming from an spreadsheet. I want to use For loop for pulling into variables for path.&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&lt;A&gt;\\qlikviewprod\Apps\&lt;B style="mso-bidi-font-weight: normal;"&gt;India&lt;/B&gt;\xyz.log&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&lt;A&gt;\\qlikviewprod\Apps\&lt;B style="mso-bidi-font-weight: normal;"&gt;US&lt;/B&gt;\xyz.log&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&lt;A&gt;\\qlikviewprod\Apps\&lt;B style="mso-bidi-font-weight: normal;"&gt;UK&lt;/B&gt;\xyz.log&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;etc.&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;Any help is much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jan 2011 13:43:12 GMT</pubDate>
    <dc:creator>montubhardwaj</dc:creator>
    <dc:date>2011-01-11T13:43:12Z</dc:date>
    <item>
      <title>Dynamic script for file path</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-script-for-file-path/m-p/163774#M36730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;Hi Community,&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;I have little problem creating dynamic path for my application. I want to have a dynamic script which will pull the xyz.log file from each path where the folder is just changing. Please see below for the sample paths.&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;The values for variables (i.e. India,US,UK etc.) are coming from an spreadsheet. I want to use For loop for pulling into variables for path.&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&lt;A&gt;\\qlikviewprod\Apps\&lt;B style="mso-bidi-font-weight: normal;"&gt;India&lt;/B&gt;\xyz.log&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&lt;A&gt;\\qlikviewprod\Apps\&lt;B style="mso-bidi-font-weight: normal;"&gt;US&lt;/B&gt;\xyz.log&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&lt;A&gt;\\qlikviewprod\Apps\&lt;B style="mso-bidi-font-weight: normal;"&gt;UK&lt;/B&gt;\xyz.log&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;etc.&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;Any help is much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 13:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-script-for-file-path/m-p/163774#M36730</guid>
      <dc:creator>montubhardwaj</dc:creator>
      <dc:date>2011-01-11T13:43:12Z</dc:date>
    </item>
    <item>
      <title>Dynamic script for file path</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-script-for-file-path/m-p/163775#M36731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use peek() or fieldvalue for the loop&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Country:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Country&lt;BR /&gt; India&lt;BR /&gt; US&lt;BR /&gt; UK&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Let n = NoOfRows('Country');&lt;BR /&gt;For i = 1 to n&lt;BR /&gt; Let vCountry = fieldvalue('Country',i);&lt;BR /&gt; Files:&lt;BR /&gt; Load&lt;BR /&gt; field&lt;BR /&gt; from '\\qlikviewprod\Apps\$(vCountry)\xyz.log' ; //at least here, load one log just to check how this line is created for your file, then replace the region with the variable&lt;BR /&gt;next&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 13:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-script-for-file-path/m-p/163775#M36731</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-01-11T13:55:28Z</dc:date>
    </item>
    <item>
      <title>Dynamic script for file path</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-script-for-file-path/m-p/163776#M36732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect Hector. Helped like Hector in "TROY" &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 14:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-script-for-file-path/m-p/163776#M36732</guid>
      <dc:creator>montubhardwaj</dc:creator>
      <dc:date>2011-01-11T14:06:33Z</dc:date>
    </item>
  </channel>
</rss>

