Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
When i debug my Script I see each time a other QvWorkPath or the QvPath as I need.
Where have I to set the QvWorkPath or the QvPath?
"
WinRoot "C:"
vLastExecTime 10.11.2011 11:01:25
QvWorkRoot "C:"
1 1
vFilterDate "to_date(substr('20090101', 1, 8),'yyyymmdd')"
OpenUrlTimeout 86400
WinPath "C:\Windows"
0 0
QvWorkPath "C:\D\QVSHARE\SOURCEDOCS\STSBI_ABAS"
QvRoot "C:"
QvPath "C:\D\qvserver\Distribution Service"
CD "E:"
FLOPPY "A:"
"
They are system variables auto defined by QlikView. The QV Desktop Help describes them. Below pasted in from the Help:
Returns the browse string to the current QlikView document. A system-defined variable.
Returns the root directory of the current QlikView document. A system-defined variable.
Hi Matthias!
1 step
2 step
@Cepreu pokacow, Thanks. It was very helpful for me.
@Bill Markham, in Generator you could not change it. But I work in the moment with the App's
Where? You don't.
Why would you want to change the value of a variable like QvPath? So that QlikView Desktop/QlikView Distribution Service cannot find it's own executable anymore? Not good...
The strange values you get in the variable overview may be a remnant of a previous execution in a different environment.The values of these variables are (re)set at the beginning of every script execution.
Because I have Generator and a App which are ok. But I need Generators for other parts aof the database. Thats why I copied the Generator and the App, because to test the program the other generator und app, with the old.
That's just fine with me. But does it mean that another QlikView engine should reload the data as well (QvPath)? Or that the path of the copy of Generator and App should be changed into something entirely different?
The System will set these variables to the correct values.
For your test/debug copies, the folowing will happen immediately before the first debug/test script line is executed,
For your original documents, this is what will happen immediately before the first production script line is executed:
I hope this sheds some light on the situation. If not, ask away.
Peter
Note that - if I'm not mistaken - the value of QvWorkPath may change during the execution of the script and whenever the script encounters a Directory; statement.
The path of the copy from the Generator and App should be a other path as before.
I have a under /config a datafile "project_paths" for this, but that he had ignore by the debugging. That's why i want to make this fix and it's ok so.
"
LET vDir_base = 'K:\Elger\StBi_neu\qvshare';
LET vDir_scripts = vDir_base & '\_scripts';
LET vDir_qvd = vDir_base & '\daten\qvd\' & vERP & vAppName;
LET vDir_xls = vDir_base & '\daten\xls' & vAppName;
LET vDir_csv = vDir_base & '\daten\csv' & vAppName;
LET vDir_parameter = vDir_base & '\daten\xls\_parameter';
LET vDir_images = vDir_base & '\daten\img';
// temp. until globals param include
SET vParameterFormat='xlsx'; // xls / xlsx (later may be qvd)"
"