Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using variables in file location/directory

Hi all,

I inherited a qvw that uses the variables below to get to file location:

let vData ='..\..\..\Data';

let vQVD = '..\Data';

Reading the variables on face value is straight forward but it seems files/qvd are not 'store in' the specified location above.

Please I will like to know whether there is anything I need to be aware of when using variables in file/folder location?

Regards,

1 Reply
Peter_Cammaert
Partner - Champion III
Partner - Champion III

This kind of path specification is always relative to the location of the QVW document (even when you INCLUDE this from a script file that resides in an entirely different location).

If you use a relative path like this in a LOAD statement, the path specification will be relative to the last DIRECTORY statement that immediately precedes the LOAD.