Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

MVP
MVP

qSortIndicator issue

Hi,

in extensions very often I need to sort dimensions myself, at least for 2nd dimension. Hence I try to figure out what sorting is given by the user. The only thing I cannot detect is when a dimension is not sorted, means sorting by load order.

In that case according to documentation qSortIndicator should equal 'N' but it doesn't:

So my guess is this is an API bug. Is there any workaround?

- Ralf

1 Solution

Accepted Solutions
erik_wetterberg
Honored Contributor

Re: qSortIndicator issue

Hi Ralf,

You really need qSortCriterias, which is not included in the dimension info in the layout (that might be considered a bug). When you turn off sorting in the standard property panel, the client will still set qSortByLoadOrder to 1, like this:

Capture.PNG

So QIX engine still thinks its sorted (which it is..).

A workaround would be getting the properties and checking qSortCriterias.

Hope this helps

Erik Wetterberg

Erik Wetterberg
https://extendingqlik.upper88.com/
2 Replies
erik_wetterberg
Honored Contributor

Re: qSortIndicator issue

Hi Ralf,

You really need qSortCriterias, which is not included in the dimension info in the layout (that might be considered a bug). When you turn off sorting in the standard property panel, the client will still set qSortByLoadOrder to 1, like this:

Capture.PNG

So QIX engine still thinks its sorted (which it is..).

A workaround would be getting the properties and checking qSortCriterias.

Hope this helps

Erik Wetterberg

Erik Wetterberg
https://extendingqlik.upper88.com/
MVP
MVP

Re: qSortIndicator issue

Thanks Erik,

I know and have used qSortCriterias before but thought qSortIndicator would be a more simple solution.

Community Browser