3 Replies Latest reply: May 29, 2015 7:11 AM by Alexander Voss RSS

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

    Alexander Voss

      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