Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

paul_satmar
New Contributor

How to call a webService, when a selection is made in QlikSense

Hi everyone,

I've managed to create an webService call from javascript with hard-coded values.

Now, i want to pass 2 variables from qliksense interface to a extension who calls this webservice, everytime when a selection is made.

I'm stucked here, any advice is welcome.

Paul S.

3 Replies
beck110979
Valued Contributor III

Re: How to call a webService, when a selection is made in QlikSense

Hi Satmar,

what do you mean with WebService? Like Email-allerting?

Beck

paul_satmar
New Contributor

Re: How to call a webService, when a selection is made in QlikSense

Hi Beck,

I've implemented a WebService (WS) who receives 2 params and insert them in my oracle database, using POST method.

Paul S

erik_wetterberg
Honored Contributor

Re: How to call a webService, when a selection is made in QlikSense

Hi,

The easiest way to get notified when a selection is made is to add a qSelectionObjectDef to your initialProperties. (Described very briefly in my Generic Object Introduction).

Your paint method will then be called every time selection state changes.

Note that this will give you notification not only when selections are made, but also when selections are cleared,. And when the user is interacting with a visualization, you will be called for every change in selections (might miss some, if it is a big document), so theer will be a lot of calls.

Hope this helps

Erik Wetterberg

Erik Wetterberg
https://extendingqlik.upper88.com/
Community Browser