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: v83 Table displayed attribute
Topic Summary:
Created On: 4-Nov-2008 15: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.
Answer This question was answered by Louie Landale, on Wednesday, November 12, 2008 3:21 PM

Answer:
Well, Anders beat me to it, but here's the Email I sent to collegues:

Good news. Browsed the v8.3 doors.exe and also contacted Telelogic.

I see these commands in the v8.3 doors.exe:
string defaultTableAttribute(Module) DefaultTableAttributeMod
bool overrideTableAttribute(Module) OverrideTableAttributeMod
bool enableDefaultTableAttribute(Module) EnableDefaultTableAttributeMod
void defaultTableAttribute(string) DefaultTableAttributeSet
void overrideTableAttribute(bool) OverrideTableAttributeSet
void enableDefaultTableAttribute(bool) EnableDefaultTableAttributeSet

All seem to be associated with the View menu >Table Attributes ... GUI information; all of which define table attributes for the module, not for individual tables. The last 3 seem to presume the 'current module'.

I also see commands:
bool useDefaultTableAttribute(ViewDef) viewDefGetUseDefaultTableAttribute
void useDefaultTableAttribute(ViewDef, bool) viewDefUseDefaultTableAttribute

which I have not experimented with and frankly don't see any corresponding GUI functionality. I suspect these to be future enhancements, where later on you can save the default attribute in a view.

Telelogic responded on how to modify the table attribute of the current table. I wrote the attached code snippet to demonstrate it, I'm sure folks will figure it out from there. The key to this seems to be use of the 'reserved' word before the hidden ..err.. Reserved attribute "Main Column Attribute":


So far, I see no mechanism for querying DOORS for a list of such 'Reserved' attributes in the module.
 4-Nov-2008 15:05
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Is there a way in dxl to get the name of the attribute being displayed in the cells of a given DOORS native table? Note that not all tables in the module will have the same attribute displayed in their cells.

I see no such commands in text version of doors.exe, see no such commands in the DXL manual, and see no hidden system attributes that would contain this information.

- Louie
Report this to a Moderator Report this to a Moderator
 11-Nov-2008 07:50
User is offline View Users Profile Print this message


Anders Vestlin

Posts: 11
Joined: 30-Aug-2007

Hi,

You can use the reserved attribute "Main Column Attribute":

Object oCell = current // A cell object
print oCell.(reserved "Main Column Attribute") "\n"

/Anders
Report this to a Moderator Report this to a Moderator
 12-Nov-2008 15:21
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
Well, Anders beat me to it, but here's the Email I sent to collegues:

Good news. Browsed the v8.3 doors.exe and also contacted Telelogic.

I see these commands in the v8.3 doors.exe:
string defaultTableAttribute(Module) DefaultTableAttributeMod
bool overrideTableAttribute(Module) OverrideTableAttributeMod
bool enableDefaultTableAttribute(Module) EnableDefaultTableAttributeMod
void defaultTableAttribute(string) DefaultTableAttributeSet
void overrideTableAttribute(bool) OverrideTableAttributeSet
void enableDefaultTableAttribute(bool) EnableDefaultTableAttributeSet

All seem to be associated with the View menu >Table Attributes ... GUI information; all of which define table attributes for the module, not for individual tables. The last 3 seem to presume the 'current module'.

I also see commands:
bool useDefaultTableAttribute(ViewDef) viewDefGetUseDefaultTableAttribute
void useDefaultTableAttribute(ViewDef, bool) viewDefUseDefaultTableAttribute

which I have not experimented with and frankly don't see any corresponding GUI functionality. I suspect these to be future enhancements, where later on you can save the default attribute in a view.

Telelogic responded on how to modify the table attribute of the current table. I wrote the attached code snippet to demonstrate it, I'm sure folks will figure it out from there. The key to this seems to be use of the 'reserved' word before the hidden ..err.. Reserved attribute "Main Column Attribute":


So far, I see no mechanism for querying DOORS for a list of such 'Reserved' attributes in the module.

Edited: 12-Nov-2008 at 15:27 by Louie Landale
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.