Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I sort the values in a multibox using an expression. This works fine until the user makes a selection, after the selection is made the items seem sorted randomly. Any ideas?
Thnx
Multiboxes are weird in sorting
It´s because the expression used in sorting is affected by the selection in this field. You can use Set Analisys to fix it! For example, if you want to sort The product´s Category by Sales the expression coul´d be
sum( {$<Category=>} Sales)
This will ignore the selection in Category field and keep the values sorted correctly. Remeber to uncheck the "sort by state" check box.
Thnx but my expression is not an aggregate function, just another field, so I can't use Set Analysis. The sort field is different from the display field.
In this case aggregate it! User ONLY( {$<Category=>} Sort_Field)
Thnx man works nicely. Didn't know about the ONLY() function 🙂
Is there a way to have the selection appear in the original order? Once a selection is made on the multibox, when returning to it, the selected value always appears on top. Thnx!