Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
rbecher
Partner - Master III
Partner - Master III

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?

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
1 Solution

Accepted Solutions
ErikWetterberg
Master
Master

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
Master
Master

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
Partner - Master III
Partner - Master III
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

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
ErikWetterberg
Master
Master

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

Erik