Discussion board where members can get started with Qlik Sense.
Hey Qlik Community,
fetch the selection of a particular object (listbox) from the Qlik Sense mash-up itself?
I am not sure which of the API functions I should be using in order to recreate an URL with the selections included as follows:
getData() - https://help.qlik.com/en-US/sense-developer/2.2/Subsystems/APIs/Content/BackendAPI/getdata-method.ht...
1) User opens web-page with Qlik Sense visualisation and list-boxes.2) User selects two fields 3) User can then press a URL hyperlink that includes the selections that was made in step 2.
Any kind of help would be very helpful as I can not find much about this topic in the community.
so basicaly you want to be using the selection api to retrieve the selected objects right?
you can do this by getting
var selState = app.selectionState( );
this returns a selection state object wich is like this
QSelectionState ‒ Qlik Sense
yo will need to get the .QFieldSelectionsand then the qselected field.
after you get the fields and values you could easily post them to your next url trough string concatination
hope this helps.
to see the output you would need to log the console when the state of the object changes for example
don't have the tools to help you atm srr