Creating reusable load script with QVS files
Create reusable blocks of load script using QlikView script (QVS) files.
You can add a block of Qlik load script to a text editor and save it as a QVS file. The QVS can then be added to a web storage provider or locally on the Qlik Sense server. The QVS can be inserted into the load scripts of scripts and apps from your data files or web storage. This allows you to use a single script across multiple apps and scripts. For example, you could use a QVS to:
-
Set variables.
-
Define commonly used subroutines.
-
Set color palettes.
-
Define calendars.
Creating QVS files
Create QVS files in a text editor outside of Qlik Cloud.
Do the following:
-
Create a block of load script in an app or script.
Creating your load script in an app or script allows you to test the script first before adding it to a QVS files.
Alternatively, find a block of load script you want to reuse.
-
In a text editor, copy and paste the block of load script you want to reuse.
-
Save the load script as a file with the QVS extension.
If you want to attach the script to your app, you can alternatively save it as a TXT file.
You can now upload the QVS file to a web storage provider or add it to local storage on the Qlik Sense server.
Limitations
QVS files have the following limitations:
- You cannot attach QVS files to an app.
-
Preview for QVS files is not available on mobile.