<?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: Change URL link depending on login environment in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Change-URL-link-depending-on-login-environment/m-p/2038362#M85539</link>
    <description>&lt;P&gt;Maybe something combining the if() control statement with the ComputerName() Function?&lt;BR /&gt;&lt;BR /&gt;Something like:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;IF(wildmatch(ComputerName(),&amp;lt;Your Prod Server Name&amp;gt;),'&amp;lt;prod URL&amp;gt;','&amp;lt;int URL&amp;gt;')&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the ComputerName() Function in a KPI on each environment to verify what the value will look like&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlik_Eric_Thomas_0-1676476201066.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100614iA3693E7F5BDCAE5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Qlik_Eric_Thomas_0-1676476201066.png" alt="Qlik_Eric_Thomas_0-1676476201066.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 15:50:19 GMT</pubDate>
    <dc:creator>Qlik_Eric_Thomas</dc:creator>
    <dc:date>2023-02-15T15:50:19Z</dc:date>
    <item>
      <title>Change URL link depending on login environment</title>
      <link>https://community.qlik.com/t5/App-Development/Change-URL-link-depending-on-login-environment/m-p/2038320#M85536</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to change the url link of a board based on my login:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jmialoundama_0-1676473180704.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100600i674D74A88E89CE1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jmialoundama_0-1676473180704.png" alt="jmialoundama_0-1676473180704.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an Integration connection and an ODBC connection for data in Production.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;When I am in integration my URL link is the following:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;https://&lt;FONT color="#3366FF"&gt;int-test-data&lt;/FONT&gt;/cars/index.php?=controller=....&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;When I am in production the URL link is the following:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;https://&lt;FONT color="#3366FF"&gt;prod-data/&lt;/FONT&gt;cars/index.php?=controller=....&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;How can I do in my Qlik Sense application to put the right URL link according to the ODBC connection I am on.&lt;/P&gt;
&lt;P&gt;Thank you in advance for your help&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 14:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Change-URL-link-depending-on-login-environment/m-p/2038320#M85536</guid>
      <dc:creator>jmialoundama</dc:creator>
      <dc:date>2023-02-15T14:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Change URL link depending on login environment</title>
      <link>https://community.qlik.com/t5/App-Development/Change-URL-link-depending-on-login-environment/m-p/2038362#M85539</link>
      <description>&lt;P&gt;Maybe something combining the if() control statement with the ComputerName() Function?&lt;BR /&gt;&lt;BR /&gt;Something like:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;IF(wildmatch(ComputerName(),&amp;lt;Your Prod Server Name&amp;gt;),'&amp;lt;prod URL&amp;gt;','&amp;lt;int URL&amp;gt;')&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the ComputerName() Function in a KPI on each environment to verify what the value will look like&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlik_Eric_Thomas_0-1676476201066.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100614iA3693E7F5BDCAE5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Qlik_Eric_Thomas_0-1676476201066.png" alt="Qlik_Eric_Thomas_0-1676476201066.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 15:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Change-URL-link-depending-on-login-environment/m-p/2038362#M85539</guid>
      <dc:creator>Qlik_Eric_Thomas</dc:creator>
      <dc:date>2023-02-15T15:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change URL link depending on login environment</title>
      <link>https://community.qlik.com/t5/App-Development/Change-URL-link-depending-on-login-environment/m-p/2039203#M85621</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/163837"&gt;@Qlik_Eric_Thomas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks you for your feedback.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I create this&amp;nbsp; little script to solve my problem :&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/*We come to retrieve the name of Qlik Sense server*/
LET v_Project_Environnement = IF(ComputerName()='name_of_server', 'INTEGRATION', 'PROD');

/*URL integration*/
LET v_Serveur_INT = 'URL_INTEGRATION';

/*URL Production*/
LET v_Serveur_PROD = 'URL_PRODUCTION';

LET v_URL_Path = IF('$(v_Project_Environnement)'='INTEGRATION', '$(v_Serveur_INT)', '$(v_Serveur_PROD)');

TRACE 'l_urlPath=$(l_urlPath)';&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 17 Feb 2023 11:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Change-URL-link-depending-on-login-environment/m-p/2039203#M85621</guid>
      <dc:creator>jmialoundama</dc:creator>
      <dc:date>2023-02-17T11:23:52Z</dc:date>
    </item>
  </channel>
</rss>

