Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Not applicable

Qlikview Extension - Javascript API - How to select multiple values

In a List View showing all 50 states, I can click on "TX" (Texas) and hold Ctrl key, then click on "CA" (California)

This works like an "or"

I have an extensnion.

I currently can pass "TX" to filter on it:

SearchColumn(0, "TX");


How can I pass both ["TX", "CA"] ? Is it possible?

Tags (2)
1 Solution

Accepted Solutions
Not applicable

Re: Qlikview Extension - Javascript API - How to select multiple values

The third parameter to the function ("toggle") is a boolean; make it "true" if you want to add;

SearchColumn(colNo, searchString, toggle)

This seems odd to me, I'm not clear on what 'toggle' means:

The documentation says "Whether to toggle selections."

I thought it means if "TX" is selected, and you SearchColumn(0, "TX", true) again, the selection will turn off

I guess it (also?) means that selections are cumulative; i.e. like holding Ctrl.

I used this property of the click event to as the toggle parameter:

ctrlKey property (Internet Explorer)

1 Reply
Not applicable

Re: Qlikview Extension - Javascript API - How to select multiple values

The third parameter to the function ("toggle") is a boolean; make it "true" if you want to add;

SearchColumn(colNo, searchString, toggle)

This seems odd to me, I'm not clear on what 'toggle' means:

The documentation says "Whether to toggle selections."

I thought it means if "TX" is selected, and you SearchColumn(0, "TX", true) again, the selection will turn off

I guess it (also?) means that selections are cumulative; i.e. like holding Ctrl.

I used this property of the click event to as the toggle parameter:

ctrlKey property (Internet Explorer)

Community Browser