![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Sorting a listView column with setSortColumn(). Topic Summary: Created On: 11-Dec-2002 15:30 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: I've wrote a script that will sort the listView. Using the function sortListView() in the callback to refresh the list. Regards, Dirk. | |
![]() |
|
Hi all.
I need some help to sort a listView column: The snipped ... void cbBtnRefresh(DBE dbe) { set(chcSortColumn) if (i != -1) { set( lstTable, i, colSortStr) setSortColumn( lstTable, i) } } ... doesn't work! "lstTable" is the related table, "i" the selected column to sort and "colSortStr" a callback function as described in the DXL manual ("set (sort function)"). My problem is, that only the first call to the callback function "cbBtnRefresh" will sort the correct column. From the second call or a call with a column (index) that stores an integer value will fail. What should I do ??? I will appreciate any suggestions. Thank you very much. ![]() ------------------------- Dirk Plaschke |
|
![]() |
|
![]() |
|
I'm having the same problem, but I would describe it a bit differently.
No matter which column index I use for setSortColumn(), it is always sorting by the valies in the FIRST column. I haven't found a workaround yet. ------------------------- Michael Sutherland michael@galactic-solutions.com http://galactic-solutions.com |
|
![]() |
|
![]() |
|
I've wrote a script that will sort the listView.
Using the function sortListView() in the callback to refresh the list. Regards, Dirk. ------------------------- Dirk Plaschke |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.