Can we use document variables inside the load script?
I am trying to create dynamic variables here.
Create a variable using Document Properties -> Variables -> Create variable X (=changing_value) that has a changing value.
I am trying to use this variable inside my load script and all it gets is the text that is in the variable (i.e. "=changingvalue) and not the actual value that is being stored in the X.
Your Load seems ok, but you need to set a default value (for example 10) in your variable by going into Variables window in Qlikkview and set a default value. After that you can add an input field object to allow the user to update the variable when needed.