Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to select multiple values one-by-one without CTRL-key?

By default, you can only select multiple items in a listbox using the CTRL-key. (or dragging your mouse pointer)

However, when you forget to hold the CTRL-key once, the selection you already made is gone.

We want to create a UI where the user does not have to hold the CTRL-key to select multiple items in a listbox.

Is there a way to create a UI where every select of the user is ADDED to the selection,

instead of a REPLACEMENT of the selection? Ofcourse, the downside is the user needs

to click every item again to REMOVE it from the selection, but this will be fine for our case.

We were thinking about 2 listboxes: Listbox A displaying all currently available (unselected) items.

Listbox displays only the already selected items. This is a very common UI element in Windows applications,

where the user picks a left hand item, presses the ">" or "Add" button and the item is "moved"

to the right hand listbox. For instance, the Sheet Properties contains just such an element

for selecting which object are linked to the sheet... We want to emulate this behaviour within a QlikView model.

For the left hand listbox A, displaying only the available items, we used an expression:

=If( GetSelectedCount( Field ) > 0, Aggr( Only( {1-$} Field ), Field ), Field )

For the right hand listbox B, we display only the selected items:

=Aggr( Only( {$} Field ), Field )

So the display is right, but ofcourse QlikView's selecting behaviour is not altered. When we select

an additional item in listbox A, the previous selection is reset and overwritten with the new selection.

Is there a way, perhaps with some triggers, or a local variable storing the selected list, or ... ???

to emulate this behaviour within QlikView?

1 Reply
alvinford
Contributor III
Contributor III

Hi You can just chage the style of the list box . Which will look some thing like below. There will be no need for the User to select the Ctrl Key.

Regards,

Alvin.

Selection.bmp