The SortOnClick Property in PRIM_LIST.String

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
John
Posts: 24
Joined: Thu Aug 10, 2017 3:21 pm

The SortOnClick Property in PRIM_LIST.String

Post by John »

http://docs.lansa.com/14/en/lansa016/PR ... NCLICK.htm
The SortOnClick controls whether data is sorted when the user clicks on the column heading.

When the webpage is initially displayed there is nothing to tell the user the column is sortable.
sort.jpg
sort.jpg (198.24 KiB) Viewed 8499 times
When clicks on the Stock Age (Days) column's heading are performed, then the ascending/descending symbol is displayed.
sort2.jpg
sort2.jpg (12.47 KiB) Viewed 8499 times
My question is:
Why is the sort symbol not displayed on initial display of the webpage? Because the user won't know that they can click on the column heading and have it sorted.
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: The SortOnClick Property in PRIM_LIST.String

Post by atostaine »

Do you have a column with sortposition 1? I can't tell how the initial display is sorted
Art Tostaine
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: The SortOnClick Property in PRIM_LIST.String

Post by Stewart Marshall »

In Windows applications, it is typically assumed that list columns will be sortable by clicking on the column header. With this being the case, list columns in LANSA have only ever shown the sort symbol when the column is the primary sort i.e. SortPosition(1). This is consistent with how lists in Windows typically represent sorting.

When running in the browser the UI follows the same rules.

Regards
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
John
Posts: 24
Joined: Thu Aug 10, 2017 3:21 pm

Re: The SortOnClick Property in PRIM_LIST.String

Post by John »

No, I did not have a column with sortposition of 1.

I've experimented with the different sort properties.

I tried sortposition(1) and the sort symbol appeared BUT clicking on it doesn't sort the column.

Only when I also included sortonclick(true) was it able to be sorted.

Thanks for your input guys :-).
Post Reply