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: getBaseSelection_()
Topic Summary:
Created On: 14-Jan-2008 20:05
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.
 14-Jan-2008 20:05
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I surely got the following info here on the forums, but cannot find it. Anyone know how to get a list of the currently selected items in the DOORS explorer?

string getBaseSelection_()
Return element selected in right pane, if you have several
elements selected, this function return the first element.
int getBaseListSelectedElemsCount()
Return the number of slected elements in DOORS epxlorer
int getBaseSelectedType()
return an integer : 0 --> Module, 1 --> Folder, 2 --> Project
of the first element selected in DOORS explorer.

I notice these are not 'perms' and therefore must be functions written by Telelogic.

- Louie
Report this to a Moderator Report this to a Moderator
 14-Jan-2008 20:29
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Don't know about getBaseSelection_(), I use getSelectedItems ()

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 14-Jan-2008 20:53
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Modified code a little bit. getSelectedItems() is sensitive to whether the DOORS explorer has something slected in the right pane or the left pane. I notice that the 'key' of the returned Skip list is an 'int' number representing the position of the item in the right pane; selecting the first item returns zero. When the left pane is selected, there is only one thing selected and the key integer is always -1.

I see that "Item getSelectedItem()" returns the top-most item selected.

- Louie
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.