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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
markginqo
Partner - Contributor III
Partner - Contributor III

Search Expressions & qlik.app.field.selectValues

Hello,

I'd like to be able to make a selection in a Mashup using a search expression (bottom of page) combined with some user-entered values.  I don't quite see how to pass the search expression to the qlik.app.field.selectValues() method, has anyone succeeded with something like this?

Thanks,

Mark

2 Replies
Digvijay_Singh

Not sure but I have used expression like this, here chartFieldname and prevChartType are js variables -

app.field(chartFieldName).selectValues([{ qText: prevChartType }], false);

markginqo
Partner - Contributor III
Partner - Contributor III
Author

Thanks Digvijay, my trouble is I'm trying to put something in the qText like:

Sum(Sales) > 500000 OR Only(ShipToCountry) = 'Brazil'