Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

undergrinder
Valued Contributor 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

Re: How to reference to variables from UI

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
2 Replies

Re: How to reference to variables from UI

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
Valued Contributor II

Re: How to reference to variables from UI

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.