<?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: Variable for LOAD source in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-for-LOAD-source/m-p/1997530#M82622</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115"&gt;@alexis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you suggest in the title, use variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used a similar approach to change my libraries.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Setup Connection for dashboard state i.e. Development 1=Development, 2=UAT, 3=Production&lt;BR /&gt;//SET vState = 1; //Development&lt;BR /&gt;//SET vState = 2; //UAT&lt;BR /&gt;SET vState = 3; //Production&lt;/P&gt;
&lt;P&gt;IF $(vState) = 1 THEN&lt;BR /&gt;SET vPath = 'Development';&lt;BR /&gt;ENDIF;&lt;/P&gt;
&lt;P&gt;IF $(vState) = 2 THEN&lt;BR /&gt;SET vPath = 'UAT';&lt;BR /&gt;ENDIF;&lt;/P&gt;
&lt;P&gt;IF $(vState) = 3 THEN&lt;BR /&gt;SET vPath = 'Production';&lt;BR /&gt;ENDIF;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then instead of the library name i add the variable&amp;nbsp;$(vPath).&lt;/P&gt;
&lt;P&gt;You can put anything in the variable, library or part/full paths. Then you just change the State variable and it loads from the new location.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 10:52:12 GMT</pubDate>
    <dc:creator>Mark_Little</dc:creator>
    <dc:date>2022-10-27T10:52:12Z</dc:date>
    <item>
      <title>Variable for LOAD source</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-for-LOAD-source/m-p/1997513#M82620</link>
      <description>&lt;P&gt;I&amp;nbsp; have a number of Qlik Sense application that I develop and test in 3 different environments&lt;BR /&gt;- Desktop&lt;BR /&gt;- On-Premise Enterprise&amp;nbsp;&lt;BR /&gt;- SaaS&lt;/P&gt;
&lt;P&gt;The FROM statement (see example below) varies from environment to environment. Every time I move environments I go through the laborious task of commenting and uncommenting the right FROM statement - this is very time consuming. Can anyone suggest a better approach:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;EM&gt;ProductDescriptions:&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;EM&gt;LOAD SP_Product,&lt;BR /&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;EM style="font-family: 'courier new', courier; font-size: small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SP_ProductDescription&lt;BR /&gt;&lt;/EM&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;EM&gt;F&lt;/EM&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;EM&gt;ROM&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;EM&gt;//[lib://MiscData_Folder (cypapp3_alexis)/Products.xlsx]&amp;nbsp; &amp;nbsp;//On-Premise Server version&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;EM&gt;//[lib://MiscData_Folder/Products.xlsx]&amp;nbsp; // Desktop version&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;EM&gt;[lib://DataFiles/Products.xlsx] // SaaS environment - everything has to go into the "DataFiles" folder&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 10:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-for-LOAD-source/m-p/1997513#M82620</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2022-10-27T10:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for LOAD source</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-for-LOAD-source/m-p/1997530#M82622</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115"&gt;@alexis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you suggest in the title, use variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used a similar approach to change my libraries.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Setup Connection for dashboard state i.e. Development 1=Development, 2=UAT, 3=Production&lt;BR /&gt;//SET vState = 1; //Development&lt;BR /&gt;//SET vState = 2; //UAT&lt;BR /&gt;SET vState = 3; //Production&lt;/P&gt;
&lt;P&gt;IF $(vState) = 1 THEN&lt;BR /&gt;SET vPath = 'Development';&lt;BR /&gt;ENDIF;&lt;/P&gt;
&lt;P&gt;IF $(vState) = 2 THEN&lt;BR /&gt;SET vPath = 'UAT';&lt;BR /&gt;ENDIF;&lt;/P&gt;
&lt;P&gt;IF $(vState) = 3 THEN&lt;BR /&gt;SET vPath = 'Production';&lt;BR /&gt;ENDIF;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then instead of the library name i add the variable&amp;nbsp;$(vPath).&lt;/P&gt;
&lt;P&gt;You can put anything in the variable, library or part/full paths. Then you just change the State variable and it loads from the new location.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 10:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-for-LOAD-source/m-p/1997530#M82622</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2022-10-27T10:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for LOAD source</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-for-LOAD-source/m-p/1999171#M82757</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29012"&gt;@Mark_Little&lt;/a&gt;&amp;nbsp; for the suggestion - I adapted it to my requirements and works perfectly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 17:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-for-LOAD-source/m-p/1999171#M82757</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2022-11-01T17:20:51Z</dc:date>
    </item>
  </channel>
</rss>

