Skip to main content

Integration, Extension & APIs

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

cancel
Showing results for 
Search instead for 
Did you mean: 
rbecher
MVP
MVP

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?

Vizlib Head of R&D
1 Solution

Accepted Solutions
ErikWetterberg

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

View solution in original post

3 Replies
ErikWetterberg

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

rbecher
MVP
MVP
Author

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

Vizlib Head of R&D
ErikWetterberg

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

Erik