Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
MVP & Luminary
MVP & Luminary

Backend API selectTexts()

Hi,

I'm looking for a QlikView like function or implementation to select values of a dimension based on the text. Any suggestion how to do that? Btw. I wonder why this function doesn't exist at all..

- Ralf

Update: I mean, how can I know layout.qHyperCube.qDataPages[0].qMatrix[0].qElemNumber upfront if it's not part of the data page?

Tags (2)
1 Solution

Accepted Solutions
erik_wetterberg
Honored Contributor

Re: Backend API selectTexts()

Try the selectValues method:

http://help.qlik.com/sense/en-us/developer/#../Subsystems/Workbench/Content/BuildingWebsites/API/Met...

app.field('LastName').selectValues([{qText: "Andersson"},{qText:"Bush"},{qText:"Obama"}], true, true);

Erik

Erik Wetterberg
https://extendingqlik.upper88.com/
3 Replies
erik_wetterberg
Honored Contributor

Re: Backend API selectTexts()

Try the selectValues method:

http://help.qlik.com/sense/en-us/developer/#../Subsystems/Workbench/Content/BuildingWebsites/API/Met...

app.field('LastName').selectValues([{qText: "Andersson"},{qText:"Bush"},{qText:"Obama"}], true, true);

Erik

Erik Wetterberg
https://extendingqlik.upper88.com/
MVP & Luminary
MVP & Luminary

Re: Backend API selectTexts()

Thanks Erik, works like a charm.

Still one question left, how can I prevent a paint call after I call selectValues in my Extension?

- Ralf

erik_wetterberg
Honored Contributor

Re: Backend API selectTexts()

You can't prevent the call, but it is up to you what you do when called.

Erik

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