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

How to get the path of your QlikView document

Hello

I wanted to know how I would go about getting the folder/file location of a QlikView document dynamically using the string functions Subfield.

So for example:

My Doc is called TestApp.qvw

The document resides in the following folder: C:\Users\JoeBloggs\TestApp.qvw

I want to be able to use a string function to get the full folder location in which my QlikView file resides in dynamically.

I know there is a solution which I have used but forgotten how is it coded.

Thanks

5 Replies
quwok
Creator III
Creator III

The function DocumentPath() returns the full path as a string.

alexandros17
Partner - Champion III
Partner - Champion III

DocumentPath() returns a string with the full path of the dopcument

Not applicable
Author

What if I just want everything before '\TestApp.qvw'? How can I do this dynamically using the string functions?

Not applicable
Author

What if I just want everything before '\TestApp.qvw'? How can I do this dynamically using the string functions?

alexandros17
Partner - Champion III
Partner - Champion III

this is what you need:

=Mid(DocumentPath(), 1, FindOneOf(DocumentPath(), '\', -1))