Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
sczetty
Partner - Contributor
Partner - Contributor

Exporting variables

I have a large application with too many variables to document esily. Is there a method to export all the variables into a file for documentation puposes/

1 Solution

Accepted Solutions
disqr_rm
Partner - Specialist III
Partner - Specialist III

You can use a VB macro to store them in a text file or clipboard.

From API Guide:

rem ** Show name of all variables in document **
set vars = ActiveDocument.GetVariableDescriptions
for i = 0 to vars.Count - 1
set v = vars.Item(i)
msgbox(v.Name)
next

THis will loop through all the document variables, and within the for-next loop you can insert a line in a text file.

Hope this helps.

View solution in original post

2 Replies
disqr_rm
Partner - Specialist III
Partner - Specialist III

You can use a VB macro to store them in a text file or clipboard.

From API Guide:

rem ** Show name of all variables in document **
set vars = ActiveDocument.GetVariableDescriptions
for i = 0 to vars.Count - 1
set v = vars.Item(i)
msgbox(v.Name)
next

THis will loop through all the document variables, and within the for-next loop you can insert a line in a text file.

Hope this helps.

sczetty
Partner - Contributor
Partner - Contributor
Author

Thanks, this looks like a good workaround to a missing feature!

Steve