Qlik Community

Qlik Sense App Development

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

stockisteven86
New Contributor

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

Re: Using jquery to see if selection is made in mashup ?

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

Community Browser