Managing file locations and connection strings

In our current example documents, we have always referred to the Data Files folder for our source data. If, for any reason, this folder has to be moved somewhere else, we will have to manually change the source data path in many locations in many files.

Let's follow these steps to create an included script file to set the source data folder in a single location:

  1. Open Notepad (by pressing Windows Key + R, typing in notepad, and pressing Return) or any other text editor.
  2. Enter the following script:
    SET vFolderSourceData = '..\Data Files\';
  3. Save the file to the same folder as your QlikView document and call it Config.qvs.
  4. Close Notepad and return to QlikView's script editor window.
  5. Go to the Include tab and ...

Get QlikView 11 for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.