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

I would like a variable to hold the .qvw file name ... any ideas?

Hi,

I know about the filebasename() type functions that let you load the name of the data file you are loading as a field, but I would like to be able to identify the name of the actual qvw file itself.  The reason being, I have the same script being used in roughly five documents but depending on what the purpose of that file is I switch on or off different parts of the script and apply or remove filters.

Currently I do this by having a few variables at the beginning to determine whether the file is the development, or live, general or specific reporting.  Ideally, I would like to be able to set these variables based on the file name instead.  Does anyone know a function that identifies the name of the qvw file rather than the data files being loaded?

Many thanks,

Emma

1 Solution

Accepted Solutions
sreenivas
Creator III
Creator III

let vFilename=DocumentName()

View solution in original post

2 Replies
sreenivas
Creator III
Creator III

let vFilename=DocumentName()

Not applicable
Author

Excellent - many thanks this works perfectly.

🙂