Skip to main content Skip to complementary content

searchAssociations method

app.searchAssociations(qTerms, qPage, qOptions, callback)

Method used to search for one or more terms in the values of a Qlik Sense app.

Since:
  • 1.1

Parameters

Name Type Description
qTerms Array

Terms to search for.

qPage Object

Properties:

Name Type Description
qOffset Number Position from the top, starting from 0.
qCount Number Number of search results to return.
qMaxNbrFieldMatches Number

Maximum number of matching values to return per search result.

qOptions Object

Optional. Search options. Properties:

Name Type Description
qSearchFields Array List of search fields.
callback Function

Optional. Callback method.

Returns

A promise of a RPC reply.

Tip noteFor more information regarding a promise, see http://docs.angularjs.org/api/ng.$q.

Example

app.searchAssociations(["se"],{qOffset:0,qCount:15,qMaxNbrFieldMatches:5},{},function(reply){
	var str = "";
	reply.qResults.qFieldDictionaries.forEach(function(dic){
  	dic.qResult.forEach(function(result){
			str += result.qText;
		})
	});
	alert(str);		
});

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!