Skip to main content
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
Partner Ambassador/MVP
Partner Ambassador/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