Page 1 of 1

The SortOnClick Property in PRIM_LIST.String

Posted: Wed Sep 20, 2017 2:46 pm
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 8502 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 8502 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.

Re: The SortOnClick Property in PRIM_LIST.String

Posted: Wed Sep 20, 2017 3:07 pm
by atostaine
Do you have a column with sortposition 1? I can't tell how the initial display is sorted

Re: The SortOnClick Property in PRIM_LIST.String

Posted: Wed Sep 20, 2017 3:32 pm
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

Re: The SortOnClick Property in PRIM_LIST.String

Posted: Wed Sep 20, 2017 4:00 pm
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 :-).