<?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: Identify what environment we are in Archived Groups</title>
    <link>https://community.qlik.com/t5/Archived-Groups/Identify-what-environment-we-are/m-p/137399#M1209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my actual script: it looks like I'm able to make it work on QS or QV but not both!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET QVD = '$(vG.LoadPath)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Generate the Loop for each value in the LIST_OF_TABLES table&lt;/P&gt;&lt;P&gt;FOR EACH vFileName IN filelist(QVD&amp;amp; '\*.qvd') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT ISNULL('$(vG.HomeContainer)') THEN&lt;/P&gt;&lt;P&gt;LET vFileBaseName=replace(subfield('$(vFileName)', '/', -1), '.qvd', '');&lt;/P&gt;&lt;P&gt;ELSE &lt;/P&gt;&lt;P&gt;&amp;nbsp; LET vFileBaseName=replace(subfield('$(vFileName)', '\', -1), '.qvd', ''); &lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[$(vFileBaseName)]:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; * &lt;/P&gt;&lt;P&gt;FROM $(vFileName) (qvd);&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next vFileName &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2018 15:20:12 GMT</pubDate>
    <dc:creator>bmenicucci</dc:creator>
    <dc:date>2018-08-14T15:20:12Z</dc:date>
    <item>
      <title>Identify what environment we are</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Identify-what-environment-we-are/m-p/137398#M1208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello qlikers,&lt;/P&gt;&lt;P&gt;I've a quick question for you laid on the beach! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;I'm using my QDF scripts in both Qlik Sense and Qlik View. The question is: how do I know, from a script perspective, which environment I am dealing with? This can be useful, for instance, during an automated "LOAD" of QVDs: if you are in QS, to identify the path of the file you have to use "/" while in QV you have to use "\".&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks a lot and have a nice summer time!&lt;/P&gt;&lt;P&gt;Brunello&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2025 17:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Identify-what-environment-we-are/m-p/137398#M1208</guid>
      <dc:creator>bmenicucci</dc:creator>
      <dc:date>2025-07-22T17:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Identify what environment we are</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Identify-what-environment-we-are/m-p/137399#M1209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my actual script: it looks like I'm able to make it work on QS or QV but not both!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET QVD = '$(vG.LoadPath)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Generate the Loop for each value in the LIST_OF_TABLES table&lt;/P&gt;&lt;P&gt;FOR EACH vFileName IN filelist(QVD&amp;amp; '\*.qvd') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT ISNULL('$(vG.HomeContainer)') THEN&lt;/P&gt;&lt;P&gt;LET vFileBaseName=replace(subfield('$(vFileName)', '/', -1), '.qvd', '');&lt;/P&gt;&lt;P&gt;ELSE &lt;/P&gt;&lt;P&gt;&amp;nbsp; LET vFileBaseName=replace(subfield('$(vFileName)', '\', -1), '.qvd', ''); &lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[$(vFileBaseName)]:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; * &lt;/P&gt;&lt;P&gt;FROM $(vFileName) (qvd);&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next vFileName &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 15:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Identify-what-environment-we-are/m-p/137399#M1209</guid>
      <dc:creator>bmenicucci</dc:creator>
      <dc:date>2018-08-14T15:20:12Z</dc:date>
    </item>
  </channel>
</rss>

