<?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 How can I add qvd-files with data manager automatically depending on which space my app resides in? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-can-I-add-qvd-files-with-data-manager-automatically/m-p/2489921#M101874</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;In my app I want to use qvd-files from the space where the app is located. I.e when the app is in shared space the qvd-files resides in shared space and when the app is in managed space it should use the qvd-files in the managed space. And I don't want to change the app once it is in managed space.&lt;BR /&gt;&lt;BR /&gt;This can be solved by manually adding this in the script:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Let vSpaceType = GetSysAttr('spaceType');

// Figure out if this is shared or managed space
if vSpaceType = 'shared' then
Let vQvdExtractPath = 'lib://MySharedSpace:DataFiles/';
else
Let vQvdExtractPath = 'lib://MyManagedSpace:DataFiles/';
end if;

Data:
LOAD *
FROM [$(vQvdExtractPath)MyExtractedData.qvd]
(qvd);&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;But how can I set this when I fetch data automatically with data manager?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;Johan&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2024 13:04:15 GMT</pubDate>
    <dc:creator>_Johan</dc:creator>
    <dc:date>2024-10-30T13:04:15Z</dc:date>
    <item>
      <title>How can I add qvd-files with data manager automatically depending on which space my app resides in?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-add-qvd-files-with-data-manager-automatically/m-p/2489921#M101874</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;In my app I want to use qvd-files from the space where the app is located. I.e when the app is in shared space the qvd-files resides in shared space and when the app is in managed space it should use the qvd-files in the managed space. And I don't want to change the app once it is in managed space.&lt;BR /&gt;&lt;BR /&gt;This can be solved by manually adding this in the script:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Let vSpaceType = GetSysAttr('spaceType');

// Figure out if this is shared or managed space
if vSpaceType = 'shared' then
Let vQvdExtractPath = 'lib://MySharedSpace:DataFiles/';
else
Let vQvdExtractPath = 'lib://MyManagedSpace:DataFiles/';
end if;

Data:
LOAD *
FROM [$(vQvdExtractPath)MyExtractedData.qvd]
(qvd);&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;But how can I set this when I fetch data automatically with data manager?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;Johan&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 13:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-add-qvd-files-with-data-manager-automatically/m-p/2489921#M101874</guid>
      <dc:creator>_Johan</dc:creator>
      <dc:date>2024-10-30T13:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add qvd-files with data manager automatically depending on which space my app resides in?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-add-qvd-files-with-data-manager-automatically/m-p/2489969#M101876</link>
      <description>&lt;P&gt;Is this solved by adding the tables manually in the load script and then by "Analyze load script" and "Synchronize scripted tables" in Data manager?&lt;BR /&gt;&lt;BR /&gt;Before "Synchronize scripted tables" it says "Do not synchronize your scripted tables if your scripts contain Exit statements or dynamic fields". What is a dynamic field?&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;Johan&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 13:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-add-qvd-files-with-data-manager-automatically/m-p/2489969#M101876</guid>
      <dc:creator>_Johan</dc:creator>
      <dc:date>2024-10-30T13:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add qvd-files with data manager automatically depending on which space my app resides in?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-add-qvd-files-with-data-manager-automatically/m-p/2489990#M101879</link>
      <description>&lt;P&gt;Using just a colon for space in the lib path means &lt;EM&gt;use the space where this app is located&lt;/EM&gt;.&amp;nbsp; In your example, the syntax would be:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;LOAD *&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM [lib://:DataFiles/MyExtractedData.qvd]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Note the ":" before DataFiles.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 14:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-add-qvd-files-with-data-manager-automatically/m-p/2489990#M101879</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-10-30T14:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add qvd-files with data manager automatically depending on which space my app resides in?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-add-qvd-files-with-data-manager-automatically/m-p/2490040#M101885</link>
      <description>&lt;P&gt;Hi Rob,&lt;BR /&gt;&lt;BR /&gt;That is a nice feature.&lt;BR /&gt;&lt;BR /&gt;The follow up question now then is how do I get that into the path of the "Auto-generated section" in the load script that is locked by the "Data manager"?&lt;BR /&gt;How much can I play around in the auto generated script part without something breaking?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;Johan&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 19:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-add-qvd-files-with-data-manager-automatically/m-p/2490040#M101885</guid>
      <dc:creator>_Johan</dc:creator>
      <dc:date>2024-10-30T19:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add qvd-files with data manager automatically depending on which space my app resides in?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-add-qvd-files-with-data-manager-automatically/m-p/2490049#M101888</link>
      <description>&lt;P&gt;The same path syntax should work in the auto generated section. If you edit the auto section, I believe you will not be able to use the data manager on that section again. I'm not sure if you can synchronize back again, haven't tried it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my experience the Data Manager is a great "getting started" tool, but imposes constraints you will want to get away from pretty quickly.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 00:34:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-add-qvd-files-with-data-manager-automatically/m-p/2490049#M101888</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-10-31T00:34:04Z</dc:date>
    </item>
  </channel>
</rss>

