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: 
Not applicable

Export Variables from an application.

Hi,

Is there any way by which we can export all the variables created in the application (During the reloading or development).

Vivek

1 Solution

Accepted Solutions
giakoum
Partner - Master II
Partner - Master II

then you could remove the = in a copy of your application and use Johannes approach.

But maybe this way works also :

3:

LOAD

          '$(Variable1)' as Variable1

          ,'$(Variable2)' as Variable2

AutoGenerate(1);

STORE [3] into c:\Variables.txt (txt);

View solution in original post

14 Replies
nagaiank
Specialist III
Specialist III

One way of doing this is to create all variables in the script and export the script file from which the variables can be created. Probably this is a good practice as this documents all the variables in the application.

Anonymous
Not applicable
Author

1. Create an input box

2. Click Add All to list all variables

3. Send to Excel

Not applicable
Author

hi Johannes,

thxs for the reply... i have tried this approach but the variables that are declared with the '=' displays the result rather than the expression.

how can i export the exact expression of the variables which has the expression starting with '='?

giakoum
Partner - Master II
Partner - Master II

It seems that Johannes is right. See attached example.

Anonymous
Not applicable
Author

Yeah Vivek,

You're right. Didn't think about that one

Not applicable
Author

hi,

the example shared by you doesnot contain '=' sign before the expression...so the result is the whole expression but if the expression is declared with '=' sign at the begining then it doesn'tshow the expression but the result of the expression.

See the attached file.

nagaiank
Specialist III
Specialist III

For this exact reason, I suggested to include the expression for defining the variable in the script and export the script with the expression.

giakoum
Partner - Master II
Partner - Master II

sorry yes you are right. Is it a one time thing or you need to export the expressions over and over again?

Not applicable
Author

no its a one time thing...actually the thing is that the applications have very complex expressions defined in them. so i wanted to export all the expressions for safe keeping.