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: determinging current column (selected column) in view
Topic Summary: The user can click on a column in a view: what DXL tells me what that column is?
Created On: 10-Sep-2007 23:03
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 Uma Unnikrishnan, on Friday, September 14, 2007 11:24 PM

Answer:
Hi Jason,

You could get the column number using the following:

int i = getSelectedCol(current Module)

If no column is selected, it returns -1.

I hope this helps.

Rgds,
Uma

 10-Sep-2007 23:03
User is offline View Users Profile Print this message


jason haury

Posts: 39
Joined: 20-Feb-2007

Since DOORS can remove a column from a view by determining what the "current column" is (the column that the user has selected by clicking on the column title), then it must be possible to get the column of the current column...but how?  Is there anything like "Column c = current column" ?

Thanks!
Jason

Report this to a Moderator Report this to a Moderator
 11-Sep-2007 09:58
User is offline View Users Profile Print this message


Uma Unnikrishnan

Posts: 32
Joined: 7-Aug-2006

Answer Answer
Hi Jason,

You could get the column number using the following:

int i = getSelectedCol(current Module)

If no column is selected, it returns -1.

I hope this helps.

Rgds,
Uma

Report this to a Moderator Report this to a Moderator
 11-Sep-2007 22:56
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

If you are suggesting that a Layout DXL can determine which column its in...

getSelectedCol(current Module) won't work since the column isn't necissarily selected by the user. There is no such 'current Column' command.

I suppose the DXL could be written as follows:
Put this in the first line: //FirstLineOfMyDXL
loop through all columns in the module, looking for layout DXL. If one is found get the DXL of the layout, and if the first line is the one above then BINGO this is the right column.

Not sure why you would need a layout to know what column its in, although looking at the column title I suppose may be useful information.

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.