Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Dirk Plaschke, on Tuesday, August 26, 2003 11:26 AM

Answer:
I've wrote a script that will sort the listView.

Using the function sortListView() in the callback to refresh the list.

Regards,
Dirk.
 11-Dec-2002 15:30
User is offline View Users Profile Print this message


Dirk Plaschke

Posts: 103
Joined: 17-Sep-2002

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

-------------------------
Dirk Plaschke
Report this to a Moderator Report this to a Moderator
 12-Dec-2002 03:06
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 26-Aug-2003 11:26
User is offline View Users Profile Print this message


Dirk Plaschke

Posts: 103
Joined: 17-Sep-2002

Answer Answer
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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.