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: Call Back function for Column title of a list view
Topic Summary:
Created On: 15-Apr-2005 10:04
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.
 15-Apr-2005 10:04
User is offline View Users Profile Print this message


Johann Bucher

Posts: 3
Joined: 8-Jul-2003

Hello,

I'm looking for a DXL command, which sets a call back function on a column title of a list view.
This call back function could be used to sort the elements of this list view by this column.
The current DXL help library describes only the call back on a list view in case you click on an entry into the list.
For example the DOORS Database Explorer has probably included this call back and function on every column.

Does anybody know a dxl command for setting a callback function to a column title of a list view?

Thank you

J.Bucher
Report this to a Moderator Report this to a Moderator
 15-Apr-2005 13:33
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

The following is from the help.


set (sort function)
Declaration
void set(DBE listView,
int columnIndex,
int dxlSortFn(string, string))

Operation
Attaches a sort function to a specific column within a list view. The callback must be of the form:

void dxlSortFn(string s1,
string s2){
}

The sort function must return the following values:


Expression Returns
s1==s2 0
s1>s2 1
s1<s2 -1


If this function is used with an incorrect type DBE, a DXL run-time error occurs.




-------------------------
Tony Goodman
http://www.smartdxl.com
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.