Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
If I use:
DIRECTORY:
in a script I can work with relative paths..
I can select a directory:
DIRECTORY C:\curso qlickview\ficheros;
But I would like to know how to change th default directory..., the directory that it's used when I use:
DIRECTORY;
Thanks in advance,
Hi Juan,
Do u want to change or rename the directory.
I want to change
It will take the relative directory of the app file location by default
Hi ,
Try this in script
SET vPath = 😧\curso qlickview\ficheros;
when u r loading tables use this
From
[$(vPath)Product.qvd]
qvd;
Hi these type of problems you will face when you are moving something from Dev to Prod or to Test
To solve the issues people generally maintain the paths in a file and load them in a variable and do accordingly.
I think you can't.
The default directory is always the directory of the current document (at least in QV Desktop) or the path that is set in the QMC (for server installations). Specifying a simple DIRECTORY; statement without any parameters will return you to the working directory.
Note that there have been some changes to how QlikView functions react to the path set in a DIRECTORY statement. It used to be just the LOAD statement that was affected, but nowadays (SR11+ and QV12), Qvd functions also make use of the path specified in the last DIRECTORY statement. If they use relative paths, that is.
Peter
Hi,
You can change the directory to where you stored your application or qvd's by having something like:
LET vDir = 😧\curso qlickview\ficheros\;
Always remember the backslash at the end of the filepath.
Dear Juan,
Use listed below script for your versatile directory, and checked to check mark "Relative Paths" in edit script.
Directory .\..\..; |
SET vDirectory = '..\..';
Kind regards,
Ishfaque Ahmed