Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
ni_avoss
Creator
Creator

order list box according to last selection made or: how to track "selection history" with getfieldselections()

hey all,

I am struggling a bit with the order of selected values within a list box.

I have a box set to LED check boxes and sort by state ascending.

lets give a quick example, which should show what I mean (bold values are the selected ones):

I have a list of values

1

2

3

4

5

if I now select values 3,4,5 my list will end up looking like

3

4

5

1

2

which is totally fine.

if I now deselect the 3, it will jump to the button, which is also fine BUT

if I now select the 3 again, it will jump on top again - I would rather like to have like

4

5

3

1

2

is that possible somehow?

why do I need this?

with getfieldselections() I want to have the order of the selections made chronologically and my impression is, that this functions always gives me the order of the listbox.

maybe there is another way with this function?

every help is much appreciated,

best,

alex

3 Replies
krishna_2644
Specialist III
Specialist III

Try using the below sort options :

1.PNG

2.PNG

3.PNG

4.PNG

MarcoWedel

Hi,

maybe you can create a sorting expression using set expressions:

$1 e.g. is the set identifier for the previous selection.

hope this helps

regards

Marco

ni_avoss
Creator
Creator
Author

hi marco,

thanks for the input. I think it should work with $_1 somehow, altough I didnt manage it in the first try (what would the expression look like?). I am following a totally different approach now and will try to work on this that later on

best,

alex