Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set sort order on simple table box

Hi,

this sounds extremely simple - and I searched the forum, too. I just cannot believe it ...

1. How can I have a simple table box with a fixed sort order, i.e. the user cannot change the sort order by clicking the table header?

or

2. How can I use the API to set a specific column to sort order in ascending direction.

myTableBox.SortBy 2 e.g. does not set the asc/desc order. It will depend on how the columns was sorted first.

Answering either 1 or 2 will really help me. Thanks for you support.

Regards,

Georg

1 Solution

Accepted Solutions
brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi,

the solution is: you find 'allow interactive sort' only in a table chart, not in a table box. In a table box it is not possible to 'not allow' interactive sorting.

View solution in original post

11 Replies
hopkinsc
Partner - Specialist III
Partner - Specialist III

Hi, i'm not sure if i understand you correctly, but if you want to stop the user from being able to sort any of the headings all you need to do is untick 'alow interactive sort' from the sort tab.

Not applicable
Author

That's what I expected. But there is no!

On the sort tab there is

  • sort priority / sort by / move up / move down

and that's it!

Best regards,

Georg

brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi,

the solution is: you find 'allow interactive sort' only in a table chart, not in a table box. In a table box it is not possible to 'not allow' interactive sorting.

stevedark
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi there,

Generally I find it is good to avoid table boxes as they are limited in a number of ways. To get similar functionality to a Table Box but with the ability to lock the sort order create a Chart with a type of Straight Table, add your dimensions and a single expression with just the value 1. In the presentation tab you can then suppress the expression column showing by selecting 'Hide Column'.

Once you have done this you will have the Allow Interactive Sort checkbox as described above.

Hope that helps,

Steve

johnw
Champion III
Champion III

I don't use table boxes in live applications. They're too limited for my taste. I always use a straight table intead with the hidden "1" expression like Steve mentioned.

Not applicable
Author

Thanks to all,

that was the kind of explanation I was looking for! I now know how to deal with this issue.

Best regards,

Georg

kji
Employee
Employee

The hiddden 1 column isnt needed if you just uncheck "Suppress Zero-Values"

johnw
Champion III
Champion III


Johan Idh wrote:The hiddden 1 column isnt needed if you just uncheck "Suppress Zero-Values"


I did not realize that. Thanks!

Not applicable
Author

Thanks Steve and John for the info.

I've tried the Straight Table and it works. However, I can't change the header of the column as it keep disable that option.

Appreciate any help.

Trisha