Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
pauluk__
Contributor III
Contributor III

Expression variable from UI to script

Hi,

I'm trying to bring a variable, based on an expression that is dependent on UI selections, into the script after a user-requested reload.

The expression uses functions such as GetSelectedCount() and I need to pass this into the load script to be used in an ADD LOAD function, e.g.:

vVariable = If(GetSelectedCount(fieldA) = 1, fieldB, 0)

At this moment when I use the variable it just gives me the code used in the expression, but I need to be able to bring the evaluated result if possible.

Does anybody know how I can do this?

Thanks.

1 Solution

Accepted Solutions
sunny_talwar

May be instead of leaving this as an expression, may be trigger to save the value into vVariable and trigger can set off based on changed in selection in fieldA.

View solution in original post

4 Replies
sunny_talwar

May be instead of leaving this as an expression, may be trigger to save the value into vVariable and trigger can set off based on changed in selection in fieldA.

pauluk__
Contributor III
Contributor III
Author

Great suggestion, I'll give it a go.

pauluk__
Contributor III
Contributor III
Author

This has worked. Thank you very much.

sunny_talwar

Awesome, I am glad it did