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

Can I make a global constant that all apps can see?

Is there a way to make a variable that all apps can read?  Like, say I wanted to share a file name or a file path or a formatting string such as 'WWW DD/MM/YYYY'.   Apps would reference such a variable via syntax like $(my_global_var).  Then I could easily keep formatting consistent among all apps or manage file paths easily instead of having to update them in many places.

I imagine I could put such variables in an Excel or text file, import them, and use something like peek() to get the data into variables.  But I haven't investigated the details of doing it that way yet because I was hoping there was something better built-in.  Thoughts?

1 Solution

Accepted Solutions
Vegar
MVP
MVP

What about creating a Qlik Script files (myGlobalVars.qvs) and including it to all your script using Include ?

Like this:

$(Include=lib://YourLIB\myGlobalVars.qvs);  

View solution in original post

2 Replies
Vegar
MVP
MVP

What about creating a Qlik Script files (myGlobalVars.qvs) and including it to all your script using Include ?

Like this:

$(Include=lib://YourLIB\myGlobalVars.qvs);  

mmarchese
Creator II
Creator II
Author

Vegar:

Ooo, that's cool.  I will have to try that.  Thanks!