Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

udaya_kumar
Valued Contributor

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.

Tags (2)
10 Replies

Re: get absolute path of the qlikview document

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
Valued Contributor

Re: get absolute path of the qlikview document

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
Valued Contributor

Re: get absolute path of the qlikview document

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.

Re: get absolute path of the qlikview document

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


talk is cheap, supply exceeds demand
udaya_kumar
Valued Contributor

Re: get absolute path of the qlikview document

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?

Re: get absolute path of the qlikview document

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
Valued Contributor

Re: get absolute path of the qlikview document

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.

Re: get absolute path of the qlikview document

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
Valued Contributor

Re: get absolute path of the qlikview document

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?

Community Browser