Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
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.

Labels (1)
1 Solution

Accepted Solutions
rwunderlich
MVP
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
MVP
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