Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
What is the difference between variables that we are created in script and under setting tab -> variable definition.
Regards,
Villyee
Hello,
There are no differences, but usually variable you create in load script are variable you need to use in your loadscript and you will still find them in your application. I am not sure if variables created in application can also be used in load script, I think yes once they are created.
Best Regards
The only different i notify here is some restricted. Like someone can not accessed to the script so and reload too. That means they can create variable user interface level.
Hi Anderson,
-->There is No difference for both variables.
-->As Anil said some people can hide the script so other developers are unable to modify/change the logic of the variable.
-->we can't create same name for the one variable .i mean if you created in script
let vact=sum(sales);
once you load the script it comes in variable Overview.
then you can't create the same name in Variable over overview
If you create in the setting tab you cannot use them in other applications where you call the source file as a binary while the variables declared in script/ qveditor can be used.
Regards,
Abhijith
One more difference: if the variable does not exists before the load script runs (ie not in variable overview), AND the variable is created in the script and is nulled before the script completes, then the variable will not be available in the front end. This is a good way to clean out variables only used for script logic
Null the variable like this:
Let v1 = Null();
or
Set v1 = ;
both are same but variable created under setting tab are not available in the scripting but still you can use variables which are created ina script in the application.
For deeper understanding of Qlikview variables..See our expert blog onThe Magic of Variables and http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptVariables...
-Siva
Meaning that in your script you cannot clean out variables that were created in the Variable Overview. Or in a previous script run.
However, you can remove unwanted variables (or all of them if you have many and you don't use them anymore) at any time using a macro.