Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
undergrinder
Specialist II
Specialist II

How to reference to variables from UI

Hi all!

There are some extensions, that allow to manipulate variables from UI.

I'm curious, is there a way to reference that new values from load script?

eg.:

In Load script:

     Set Var = 0;

     if $(var) = 1 then

          ....

     end if

The value of Var could be manipulated by UI to 1.

G.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

You can reference the variable the same way as in Qlikview: $(var). If you want to change the value of the variable in the UI while not in Edit mode then you need an extension like for example qsVariable.

Note: Var and var are two different variables. Make sure to use the correct case sensitive name.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

You can reference the variable the same way as in Qlikview: $(var). If you want to change the value of the variable in the UI while not in Edit mode then you need an extension like for example qsVariable.

Note: Var and var are two different variables. Make sure to use the correct case sensitive name.


talk is cheap, supply exceeds demand
undergrinder
Specialist II
Specialist II
Author

Hi Gysbert,

Thank you, the trick was declare the variable at UI, not in script, so the reload doesn't overwrite it's value.

G.