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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

what is the difference between defing variable in the script and going to

what is the difference between defining variable in the script and going to settings  and variable overview(crl+al+v) defining variable difference.

is thre any priority for both places defining variable

3 Replies
Anonymous
Not applicable
Author

If you're using a variable in the script, it makes sense to define it in the script.  If you don't need this variable on the front end, you can delete in the end of the script.

Otherwise, it usually doesn't matter where you define your variables.

Anonymous
Not applicable
Author

If you planning on using the prj folder to restore a QVW than always put the variables in the script.

There is a bug in QlikView where it will not recreate the variables that were defined in the variable overview.

Variables not available after rebuilding QVD from XML

So I would suggest never using the variable overview to define variable.s

its_anandrjs
Champion III
Champion III

If you are using any variable in the script for any loops and manipulate them in the script or in any loop then you define a variable there or if not use then you remove it from there. It is very simple if you do any scripting calculation otherwise from Ctrl+Alt+V.