Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
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?

1 Solution

Accepted Solutions
Not applicable
Author

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)

View solution in original post

1 Reply
Not applicable
Author

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)