<?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 Set Variable for On-Site /SaaS environment in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Variable-for-On-Site-SaaS-environment/m-p/1801559#M64992</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;is there a way to set a variable for the current environment during reload?&lt;/P&gt;&lt;P&gt;I have an app on premise which loads data from a QVD path vQVDPath = 'lib://ProdData/1.QVD/'&lt;/P&gt;&lt;P&gt;when I upload the same app to the SaaS environment I would like to be able to reload it without any change by adding something like&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;If&amp;nbsp; vEnvironment = SaaS then&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set vQVDPath = 'lib://Sales:DataFiles/';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set&amp;nbsp; vQVDPath = 'lib://ProdData/1.QVD/'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End if&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Or is there a better way to avoid changing the app once it is uploaded.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 01:15:51 GMT</pubDate>
    <dc:creator>didierodayo</dc:creator>
    <dc:date>2021-04-22T01:15:51Z</dc:date>
    <item>
      <title>Set Variable for On-Site /SaaS environment</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Variable-for-On-Site-SaaS-environment/m-p/1801559#M64992</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;is there a way to set a variable for the current environment during reload?&lt;/P&gt;&lt;P&gt;I have an app on premise which loads data from a QVD path vQVDPath = 'lib://ProdData/1.QVD/'&lt;/P&gt;&lt;P&gt;when I upload the same app to the SaaS environment I would like to be able to reload it without any change by adding something like&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;If&amp;nbsp; vEnvironment = SaaS then&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set vQVDPath = 'lib://Sales:DataFiles/';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set&amp;nbsp; vQVDPath = 'lib://ProdData/1.QVD/'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End if&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Or is there a better way to avoid changing the app once it is uploaded.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 01:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Variable-for-On-Site-SaaS-environment/m-p/1801559#M64992</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2021-04-22T01:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Variable for On-Site /SaaS environment</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Variable-for-On-Site-SaaS-environment/m-p/1801595#M64998</link>
      <description>&lt;P&gt;What I am doing at the moment is&amp;nbsp;&lt;/P&gt;&lt;P&gt;////|Prem | SaaS&lt;BR /&gt;Let vEnvironment = 'SaaS';&lt;/P&gt;&lt;P&gt;If '$(vEnvironment)' = 'SaaS' then&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set vQVDPath = 'lib://Sales:DataFiles/';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set&amp;nbsp; vQVDPath = 'lib://ProdData/1.QVD/'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works as long as I remember to switch between Prem and SaaS. That is why I am wondering if there is a systematic way to detect where the app is being reloaded?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 06:15:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Variable-for-On-Site-SaaS-environment/m-p/1801595#M64998</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2021-04-22T06:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Variable for On-Site /SaaS environment</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Variable-for-On-Site-SaaS-environment/m-p/1801612#M65001</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5712"&gt;@didierodayo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try with &lt;STRONG&gt;ComputerName&lt;/STRONG&gt;() function, hope both are different and it will help you&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 06:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Variable-for-On-Site-SaaS-environment/m-p/1801612#M65001</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-04-22T06:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Variable for On-Site /SaaS environment</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Variable-for-On-Site-SaaS-environment/m-p/1801997#M65049</link>
      <description>&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought Computer might work but because it is cloud this can change without notice. I have posted an idea for a system variable to be defined that results in a fixed value. Hopefully Qlik it embraced.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Set-Variable-for-On-Site-SaaS-environment/m-p/1801612#M65001" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Set-Variable-for-On-Site-SaaS-environment/m-p/1801612#M65001&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 06:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Variable-for-On-Site-SaaS-environment/m-p/1801997#M65049</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2021-04-23T06:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Variable for On-Site /SaaS environment</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Variable-for-On-Site-SaaS-environment/m-p/1802004#M65050</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5712"&gt;@didierodayo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Okay, Hope Your OnPremise won't change often right, in that case, you can swap the if condition&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;If&amp;nbsp; ComputerName()= 'OnPremiseCompName' then&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set&amp;nbsp; vQVDPath = 'lib://ProdData/1.QVD/';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set vQVDPath = 'lib://Sales:DataFiles/';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End if&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 06:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Variable-for-On-Site-SaaS-environment/m-p/1802004#M65050</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-04-23T06:42:55Z</dc:date>
    </item>
  </channel>
</rss>

