<?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 Loading multiple QVD files in QlikSense Server and Cloud environments. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Loading-multiple-QVD-files-in-QlikSense-Server-and-Cloud/m-p/1954731#M78736</link>
    <description>&lt;P&gt;Hello Qlik Community,&lt;/P&gt;
&lt;P&gt;I am trying to write some scripts that I would like to use in some QlikSense apps in both the QlikSense Server environment and in the Qlik Cloud environment. As part of these scripts, I and trying to write find a method to load from multiple QVD files that works in both environments, but I am having trouble finding a solution. Since wildcard loads do not work in the QlikSense Cloud environment, I am trying to use a for each loop with the FileList function to iterate through all QVD files in a data folder, and then use the WildMatch function to define the files that need to be loaded. An example script is below:&lt;/P&gt;
&lt;P&gt;LET vRoot = 'lib://Data/';&lt;BR /&gt;For Each file In FileList('$(vRoot)')&lt;BR /&gt;&amp;nbsp; If WildMatch('$(file)', '*.qvd') Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Table:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Load&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;From [$(file)](qvd);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;End If&lt;BR /&gt;Next file&lt;/P&gt;
&lt;P&gt;The above script works in the Cloud environment but does not work in the Server environment. After some testing, I found that the Server environment requires '*.qvd' at the end of vRoot or the FileList function will not return any files found. If I add this then the script no longer works in the cloud environment. Does anyone know any workarounds or methods I could use that load from several QVD files in both the Server and Cloud environments?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Tyler&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2022 15:37:35 GMT</pubDate>
    <dc:creator>tc_bizxcel</dc:creator>
    <dc:date>2022-07-12T15:37:35Z</dc:date>
    <item>
      <title>Loading multiple QVD files in QlikSense Server and Cloud environments.</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-multiple-QVD-files-in-QlikSense-Server-and-Cloud/m-p/1954731#M78736</link>
      <description>&lt;P&gt;Hello Qlik Community,&lt;/P&gt;
&lt;P&gt;I am trying to write some scripts that I would like to use in some QlikSense apps in both the QlikSense Server environment and in the Qlik Cloud environment. As part of these scripts, I and trying to write find a method to load from multiple QVD files that works in both environments, but I am having trouble finding a solution. Since wildcard loads do not work in the QlikSense Cloud environment, I am trying to use a for each loop with the FileList function to iterate through all QVD files in a data folder, and then use the WildMatch function to define the files that need to be loaded. An example script is below:&lt;/P&gt;
&lt;P&gt;LET vRoot = 'lib://Data/';&lt;BR /&gt;For Each file In FileList('$(vRoot)')&lt;BR /&gt;&amp;nbsp; If WildMatch('$(file)', '*.qvd') Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Table:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Load&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;From [$(file)](qvd);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;End If&lt;BR /&gt;Next file&lt;/P&gt;
&lt;P&gt;The above script works in the Cloud environment but does not work in the Server environment. After some testing, I found that the Server environment requires '*.qvd' at the end of vRoot or the FileList function will not return any files found. If I add this then the script no longer works in the cloud environment. Does anyone know any workarounds or methods I could use that load from several QVD files in both the Server and Cloud environments?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Tyler&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 15:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-multiple-QVD-files-in-QlikSense-Server-and-Cloud/m-p/1954731#M78736</guid>
      <dc:creator>tc_bizxcel</dc:creator>
      <dc:date>2022-07-12T15:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Loading multiple QVD files in QlikSense Server and Cloud environments.</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-multiple-QVD-files-in-QlikSense-Server-and-Cloud/m-p/1954999#M78756</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;In that case, You can use 2 set of code and write the condition based on server/cloud to execute any one.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 06:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-multiple-QVD-files-in-QlikSense-Server-and-Cloud/m-p/1954999#M78756</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2022-07-13T06:38:19Z</dc:date>
    </item>
  </channel>
</rss>

