Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Make your voice heard! Participate in the 2020 Wisdom of Crowds® Survey. BEGIN SURVEY
Contributor III

Select multiple values programmatically


In a sub routine, how would I select (or pre-select) multiples values?

Currently I use something like this to choose a single state but I now want to choose two or more states.

ActiveDocument.Fields("State").Select "CA"

ActiveDocument.Fields("State").Select "TX"


Tags (1)
2 Replies

Re: Select multiple values programmatically

I would assume it would work the same way as trying to select multiple values within the tool itself:

ActiveDocument.Fields("State").Select "(CA|TX)"

Disclosure: I haven't test this, just going off of what I already know about the tool.

Contributor III

Re: Select multiple values programmatically

Ah... I was missing the parenthesis.  That's why it didn't work for me before posting this question.

Thank you.