A configuration file can be a simple txt file, for example like this one:
Description=TEST environment
DBName=db_test
DBUser=db_user
XPassword=xxXpppAasssWwwOoorRrddDd
QVDPath='C:\QVD'
Create it in Notepad, name it, say, myapp.cfg and put to the same directory with your QlikView application.
In the application load parameters from configuration file. Sample script:
//Load configuration settings from config file which should be in the same directory as application
//Get application path
LET vAppFullPath = DocumentPath();
LET vAppName = DocumentName();
LET vAppPath = left('$(vAppFullPath)',index('$(vAppFullPath)','$(vAppName)')-2);
//Load config table
Config:
LOAD @1 as Parameter,
@2 as Value
FROM $(vAppPath)\myapp.cfg (txt, codepage is 1252, no labels, delimiter is '=', msq);
//Assign variables
LET QVDPath = lookup('Value','Parameter','QVDPath','Config');
LET vDBName = lookup('Value','Parameter',DBName','Config');
LET vDBUser = lookup('Value','Parameter',DBUser','Config');
LET vXPassword = lookup('Value','Parameter','XPassword','Config');
Drop table Config;
Then you can use variables vDBName, vDBUser and vXPassword in database connection strings and vQBDPath in paths to QVD files.
Parameter Description can be used just for, well, description of a configuration file to distinguish one environment settings from another.