Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347753 - Table sort order not stored correctly
Summary: Table sort order not stored correctly
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-31 06:25 EDT by Matthias Zimmermann CLA
Modified: 2021-08-19 11:26 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Zimmermann CLA 2011-05-31 06:25:51 EDT
PROBLEM DESCRIPTION:
Assuming a simple table column with no special configuration on a simple form. When the user sorts this column ascending and then closes and reopens the form, the sort order is restored automatically.

However, if the user descides to sort the column DESCENDING, the sort order is not saved correctly. When the form is reopened, the sort order is ASCENDING again.

EVALUATION:
ClientUiPreferences.setTableColumnPreferences() removes the TABLE_COLUMN_SORT_ASC key from the preferences when the sort order is not ascending. Because the preferences do not longer contain information about this column's sort order, the default column sort order is applied in getTableColumnSortAscending().

PROPOSED SOLUTION:
Set the key to "false" when the sort order is not ascending, instead of just removing the key. See patch.
Comment 1 Matthias Zimmermann CLA 2011-05-31 06:26:11 EDT
fixed on 2.5.2011, #99916
Comment 2 Matthias Zimmermann CLA 2011-06-28 09:10:41 EDT
shipped with eclipse scout 3.7.0