Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

getfieldselections() & Current Selections sort alphabetically

Hi All,

I have a textbox that is built up using the getfieldselections() function in a text box.  The problem is that the selections are not displayed in alphabetical order like the list box used to make the selection.  Also, if I view the selection in Current Selections box, the sort order is incorrect also.  In both instances I need it to be alphabetical.

Is there a workaround somewhere for this? 

For example if you select A, B, C, D I want the result of the getfieldselections() to show A, B, C, D .  At the moment, it is A, C, B, D (unknown order).

Cheers,

GPC

2 Replies
marcus_sommer

For getfieldselections() isn't a sort-option available but you could try it with concat(). But first have a look to the approaches here: Current Selection Alternatives.

- Marcus

Anonymous
Not applicable
Author

Hi Gareth,

The fields in the current selections object are sorted by load order and there is no option to change that property in the object's properties dialog . The only way to change sort it differently in the object is to change the order in which the fields are loaded in the script.

Regards.

Neetha