Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get all the variables through API?

Hi Guys

Do you know how to get all the variables through API in qlikview?

In the API, I can see the functions getVariable, but it need the parameter of variable name.

But what I need is to get all the variables in the current document.

In DocumentAnalyzer, it need to exort the document and read the xml file.

I need to know is there any other easy approach?

Thanks.

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Open the Document Analyzer module (Ctrl-m) and look at the Sub named "extractVars". You'll see that there is an API function named Document.GetVariableDescriptions that returns an array of all variables.

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

View solution in original post

1 Reply
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Open the Document Analyzer module (Ctrl-m) and look at the Sub named "extractVars". You'll see that there is an API function named Document.GetVariableDescriptions that returns an array of all variables.

-Rob

http://masterssummit.com

http://qlikviewcookbook.com