PDA

View Full Version : The <sortby> tag ...



UrsaTeddy
June 3rd, 2020, 04:08
Greetings,

was wondering if there was an option other than <control> or <field> for the <sortby> tag.

I would like to sort by position in the database for example (FIFO) - is that possible?

If not, what would I have to do to make it possible (if it is something that could be done).

Trenloe
June 3rd, 2020, 07:59
Remove the sortby tag completey. Make sure here is no onSortCompare code doing any order within the windowlist script LUA.

UrsaTeddy
June 3rd, 2020, 10:35
Remove the sortby tag completey. Make sure here is no onSortCompare code doing any order within the windowlist script LUA.

Thank you for the reply. It works ... I should have thought of that.

However is it possible to issue a <sortby> based on a database attribute rather than a field or control?

Trenloe
June 3rd, 2020, 10:43
However is it possible to issue a <sortby> based on a database attribute rather than a field or control?
I don't think so.

UrsaTeddy
June 3rd, 2020, 10:46
I don't think so.

Not a great loss, I would assume record order is the most common thing for that ... thank you again.