Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Using jquery to see if selection is made in mashup ?

In my mashup, I would like to re-size different divs based on the selections made.

I could use something simple.. like  If(getselectedcount(field1),1,0).

If field1 has a value selected then it'll produce a value of 1 which would trigger a function.

But I need a way for jquery to see that value of 1.

If the above is confusnig, to ask more simple, how can I use jquery to see if a dimension has been selected ?

If(Dimension is selected -> jquery do something)

1 Reply
rwunderlich
MVP
MVP

Get a selectionState object from the app.

https://help.qlik.com/en-US/sense-developer/June2018/Subsystems/APIs/Content/CapabilityAPIs/Selectio...

Bind a listener to the OnData method and you can do what you want in the listener.

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

http://www.easyqlik.com