Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
tnewbie
Creator II
Creator II

Hadling of context variables

Hello All,

We have handful of context variables in our jobs (DEV environment) out of which DB connectivity is also parameterized/contextualized, my question is when these jobs get migrated to Production where I don't have a choice to put in the passwords, how are these context variables expected to be refreshed with correct values. Any thoughts please

Labels (2)
1 Solution

Accepted Solutions
tnewbie
Creator II
Creator II
Author

Hello Community,

 

I was able to work out an answer for my own question and thought of sharing with the community, so that it may be helpful for some one in need...

 

Solution:

 

The ideal way to handle Context variables (including variables used for DB connections) is to be handle them in a properties files away from the job code, such that these variables are initiated by reading from this properties file. Refer to the attachments where i have put in a sample properties file and image of the context tab

View solution in original post

3 Replies
manodwhb
Champion II
Champion II

tnewbie
Creator II
Creator II
Author

Thanks Manodwhb. While I know that Job level extra settings allow us to load these context variables from an external file, they would typically override the project settings, so i was not sure what happens to settings set at repository/project level.

tnewbie
Creator II
Creator II
Author

Hello Community,

 

I was able to work out an answer for my own question and thought of sharing with the community, so that it may be helpful for some one in need...

 

Solution:

 

The ideal way to handle Context variables (including variables used for DB connections) is to be handle them in a properties files away from the job code, such that these variables are initiated by reading from this properties file. Refer to the attachments where i have put in a sample properties file and image of the context tab