Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Using enigma, I try creating session variables before creating session object and getLayout.
This returns a GenericVariable. Then I create session object
This returns a GenericObject. Then I tried checking if the session variables are created using GetVariableByName and GetProperties. I won't display it here but I am able to see that the variable with the definition was indeed existing. Then I call on getLayout() and got this in qMatrix
In short, I am not getting the value. Next thing I did is to remove the creation of session variable in the code and run the app again. This time, the GetVariableByName returns "Object not found". But the getLayout() returned me the value.
I would appreciate if you can explaiin me what's happening.
I think you need to modify the way you expand the variable in the hypercube. Try replacing {'$(varDate)'} with {'$(=$(varDate))'}. I think that should make Qlik Sense return the evaluated version of your variable instead of the unevaluated string "GetFieldSelections(Date)".
This thread covers a similar topic:Using variable in Set Analysis