Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I am an active reader of this forum and could so far resolve all of my QlikView issues with the help of your discussions. But now I am stuck.
In order to distribute my QlikView Application, I uploaded the .qvw-file in the SourceDocuments folder on the QlikView Server and set up a task in the QlikView Management Console (QVMC). For section access and individual access to document sheets, I use two external Excel files. The path to these Excel files is set in the script as follows:
set vImport_Document_Path = 'C:\TL\QlikView\Project\ExternalData\';
Execution of the task on the QlikView Server works fine.
Now starts the hassle. I want to declare exactly the same variable in QVMC with the path to the two external excel files on the QlikView Server (this makes sense for me in order to perform local tests without having to change anything in the script). On the Reload tab in the section "Script Parameters", I have the possibility to set a “Parameter name” and a “Parameter value”. I did this as follows:
Parameter name: vImport_Document_Path
Parameter value: C:\ProgramData\QlikTech\SourceDocuments\ExternalDocuments\
But QlikView-Server constantly ignores these values. Instead it takes the corresponding value from the script.
Thanks in advance,
Tobias
If you say "Instead it takes the corresponding value from the script", that means that you are setting the same variable in the script as well, thereby always overriding the value passed as a parameter. Using variables to pass values is tricky stuff.
A solution to this can be as follows:
Should work.
Peter
If you say "Instead it takes the corresponding value from the script", that means that you are setting the same variable in the script as well, thereby always overriding the value passed as a parameter. Using variables to pass values is tricky stuff.
A solution to this can be as follows:
Should work.
Peter
Your guess is correct, Peter. I am setting the same variable in the script as in QVMC.
I just tested your solution. It works perfectly fine.
Many thanks,
Tobias