Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Qlik35
Partner - Contributor II
Partner - Contributor II

Qlik Sense Dynamically change the environment variable when exporting/importing

Hello Everyone,

I work on Qlik Sense and I want to know if there is a way to change dynamically my environment variable when I import on an app from DEV to PROD.

There is one server for DEV and one server for PROD with a share file folder where are stored QVDs, source files, etc.. it looks like below :

  • DEV
    • App1
      • QVD
      • Source
    • App2
      • QVD
      • Source
  • PROD
    • App1
      • QVD
      • Source
    • ...

In the script of my application I have a variable vEnvironement and I put in manually 'DEV' or 'PROD' value to change the path when I export/import an app from an environment to another.

Is there a way to do this automatically ? Like "If my app is executed on PROD server take PROD path, If it is executed in DEV server, take DEV path"

Thanks for your help on this,

Regards

 

 

 

1 Solution

Accepted Solutions
rubenmarin

Hi, if there are two different server you can use ComputerName() to check if you are in PROD or DEV server.

View solution in original post

1 Reply
rubenmarin

Hi, if there are two different server you can use ComputerName() to check if you are in PROD or DEV server.