Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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.
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
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.