Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
andy
Partner - Creator III
Partner - Creator III

Qlik Sense Test/Prod and how to handle the shared folder

Hi,

I've set up my first Qlik Sense environment with QDF.

Since I'm using shared persistance I've put the QDF folder structure into that shared folder right beside the built-in Apps-folder.

To support a test and prod flow I did it this way:

1. First I created one folder named Test and another named Prod and put two complete QDF-folder structures in there with prefixes calles like Sales_Test and Sales_Prod.

2. Then I created folder-connections on the Qlik Sense server for each container in each QDF-structure for example

Sales_Test pointing to \\QLikShare\Test\4.Sales

and

Sales_Prod pointing to \\QLikShare\Prod\4.Sales

3. Then I implemented a way to automatically update a vEnvironment-variable depending on if the app is published to prod or test according to this post Multi-tier deployment in a single environment - let apps automatically know which datasources to use...

4. It is only the config-files and the qvd-files that are handled by the QDF since the applications in Qlik sense are restored into the apps-folder with a cryptic name.

Everything works nicely but then when I put some geo-files into the shared folder I realized that the Shared folder in QDF is hard-coded into the 1.init.qvs script like this:

SET vL.QDF.LinkShared_Folders = 'Shared';

Which means that the shared folder cannot have a prefix like Shared_Test or Shared_Prod.

For now I make use of the AltPath-option and have only one single shared folder common to both test and prod.

Anyone else who have thought of how to config the shared folder in a test/prod usage of QDF for Qlik sense?

10 Replies
andy
Partner - Creator III
Partner - Creator III
Author

Hi Magnus,

I downloaded the 4.GenericContainerLoader.qvs from github and created a test-app that has its homecontainer-prefix set to Extract_Test which correpsponds to a folder-connection named Container_Extract_Tets and did a call LCGV to set up variables to a folder-connection called Container_Production_Test that I have in my Sense server, in QDF the prefix is Production_Test.

This is what it looks like then.

OrgCode.png

No variables towards Container_Production_Test were created as you can see in the screenshot below

org_code_Variables.png

I then changed that single line and placed it after the Trace and the output looks like this:

new_code.png

And the variables get created.

new_Code_variables.png

Hope this helps.

Regards

Andreas