Qlik Community

Qlik Deployment Framework

This group hosts information related to the Qlik Deployment Framework (QDF). Providing best practices, libraries and utilities that facilitate the recommended setup and management of QlikView or Qlik Sense environments. An understanding of the Qlik platform is recommended before joining this group. Download QDF and documentation here: https://github.com/QlikDeploymentFramework/Qlik-Deployment-Framework/releases

Highlighted
vasilev
New Contributor III

Deploying of Apps in Sense

Hallo guys,

We have used since 2015 the QDF with QlikView. We have DEV, TEST and PROD environment in our company. Now we want to launch Sense next to QlikView. Unfortunately I have found that loading of data in Sense is not the same as in QlikView. In Sense you have to create first a connection and then use this one with the LIB command to load the data. Because each environment has a different path I have to create three connection for every environment. Is there any solution where I can handle all 3 environments with only one connection? I coundn't find anything to this issue in the QDF documentation. At this time I can imagine how can I deploy from TEST to PROD without changing the path in the connection.

Thanks for helping me in advance!

 

BR,

Rumen

1 Solution

Accepted Solutions
Employee
Employee

Re: Deploying of Apps in Sense

Hi Rumen, you need three lib's, one for each environment, but you can control what lib's to use dynamically by using the variable vG.RootContainer first in the script,  example:  
SET vG.RootContainer=’DEV’;
$(Include=lib://$(vG.RootContainer)\InitLink.qvs); 

vG.RootContainer can be "auto-fetched" by renaming the app to the current environment, like Sales_DEV and fetching the last three letters using  DocumentName( ) 

3 Replies
teemu_jr
New Contributor II

Re: Deploying of Apps in Sense

Replying to get notified too.

We just created the connections manually and added 'Security Rules'. 

Curious to hear about other ways.

Employee
Employee

Re: Deploying of Apps in Sense

Hi Rumen, you need three lib's, one for each environment, but you can control what lib's to use dynamically by using the variable vG.RootContainer first in the script,  example:  
SET vG.RootContainer=’DEV’;
$(Include=lib://$(vG.RootContainer)\InitLink.qvs); 

vG.RootContainer can be "auto-fetched" by renaming the app to the current environment, like Sales_DEV and fetching the last three letters using  DocumentName( ) 

vasilev
New Contributor III

Re: Deploying of Apps in Sense

Thank you for your suggestions guys. Because we don't have QMC yet, I would prefer the solution of Magnus.

 

BR,

Rumen