Skip to main content Skip to complementary content

selectValues method

getDataRow(qDimNo, qValues, qToggleMode)

Method used to select values in this object. This will be made with a Qlik engine call which will trigger the object to repaint.

Since:
  • 1.0

Parameters

Name Type Description
qDimNo Number Dimension number. 0 = first dimension.
qValues Array Array of values (qElemNumber in the matrix from the Qlik engine) to select or deselect.
qToggleMode Boolean

If true, values in the field are selected in addition to any previously selected items.

If false, values in the field are selected while previously selected items are deselected.

Example

$element.find('li').on('qv-activate', function() {
	if(this.hasAttribute("data-value")) {
		var value = parseInt(this.getAttribute("data-value"), 10), dim = 0;
		self.backendApi.selectValues(dim, [value], true);
	}
});

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!