Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
udaya_kumar
Specialist
Specialist

get absolute path of the qlikview document

Hi,

I am trying to implement online document chaining.

So i want to know the physical location (absolute path) of the QlikView file.

Even in server also, i need to get the physical path of the qlikview file.

Please someone help me. Thanks in advance.

10 Replies
Gysbert_Wassenaar

The QvPath system variable should return the absolute path. If you open the expression editor and select the Variables tab you can find it in the dropdown list after checking the option Show System Variables.


talk is cheap, supply exceeds demand
udaya_kumar
Specialist
Specialist
Author

Hi gysbert,

I want the location of the qvw file present in my system or nas drive path.

so i used qvworkpath, but will it show same path even after it is published to the server (in AccessPoint)?

udaya_kumar
Specialist
Specialist
Author

Hi,

I checked it by using QvPath, it is giving the qlikview path not the qvw file path.

I want the qvw file physical location path.

Gysbert_Wassenaar

Uh.. right, my mistake. Try =DocumentPath() instead.


talk is cheap, supply exceeds demand
udaya_kumar
Specialist
Specialist
Author

Hi,

I have tried this DocumentPath(), but in server it doesn't give the exact location of the file. 

it will show only the qvw filename. In accesspoint also, i want to know the location of the opened file.

How can i get the physical location of the opened file?

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

For document chaining in the server, you must use relative paths, not absolute paths. Relative paths should work in the desktop as well. So use relative paths and it will work in both environments.

-Rob

udaya_kumar
Specialist
Specialist
Author

Hi Rob,

Thanks for the reply,

My problem is, I want to hard code the accesspoint URL in the qvw file and do document chaining in the IE Plugin link. I want the file to work on Dev, QA and Prod environment.

so i want to know, from which environment i am getting the file. so i wanted to know the document file path. so that i will know that is it opened in dev or QA or prod.

I am thinking to hardcode only the server name in a variable, and that variable should get update on different environments, so that the same file will work on all the environments.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I'm not understanding. If you use relative paths, the file will open in the same environment as the document that fires the action. If you are in Dev, you want the chained document to be opened in Dev, right?

-Rob

udaya_kumar
Specialist
Specialist
Author

yeah rob,

If i am in dev, it should open in dev.

I need to use the accesspoint URL to do the document chaining.

Links will be different in different environments. so how can i differentiate that am i opening the file in dev or QA or Prod?