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: Concatenating object attributes in one column in a view.
Topic Summary: How to display two or more attributes in one column in a view, from one module.
Created On: 10-Aug-2006 19:38
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 Brenda Cornell, on Friday, August 11, 2006 5:10 PM

Answer:
Ah!!!! Got it. All I had to do instead of defining it first was simply display it in my output. It worked. thank you much.
 10-Aug-2006 19:38
User is offline View Users Profile Print this message


Brenda Cornell

Posts: 29
Joined: 7-Jul-2005

Displaying one attribute in one column in a module is easy, but selecting either Attribute and the field you want, or you can select Object Heading & Object Text option. However, if I want to display two other attributes in one column within one module, is there a way to do this?? I was a lotus notes developer and a simple statement like: FieldA + " / " + Field B

would give me the result of: Field A / Field B

So, can I do this in DOORS as well?? If so, what do I need to do??

-------------------------
Brenda Heiss Cornell
Report this to a Moderator Report this to a Moderator
 10-Aug-2006 20:11
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You need to write either a Layout or Attribute DXL. AttrDXL requires modifying the module when its defined (creat a new attribute) but allows some other DXL to query the value and displays much faster, Layout requires only saving a View but display is quite a bit slower if links are involved.

Lets do Layout. Modify at the attached Layout DXL, insert it into a column, then save the view:

Insert menu >Column; select Layout DXL; [Browse], [Current], paste the DXL, [Check], [OK], add a 'Title' to the column, [OK]

Save the view: View Menu >Save as ...

- Louie
Report this to a Moderator Report this to a Moderator
 10-Aug-2006 20:35
User is offline View Users Profile Print this message


Brenda Cornell

Posts: 29
Joined: 7-Jul-2005

I tried this and it basically works. However, I originally received an error because I was trying to include the module attribute called Object Number. I can include this DOORS attribute in a view, but I don't seem to be able to use it in the DXL script you included. Is this because it's a number format, and not a text format?? Is there any other way to display and concatenate this with a text field??

-------------------------
Brenda Heiss Cornell
Report this to a Moderator Report this to a Moderator
 10-Aug-2006 22:03
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

There are 3 pieces of information about an object that seem like "attributes" but they are not. [1] The paragraph "number" can change when you move some other object. Its determined by the object's position in the hierarchy [2] The "identifier" digits cannot change as they are the object's Absolute Number, but when the module's Prefix changes so do all the object's identifiers [3] The "level' is likewise determined by the object's position in the hierarchy.

Since these are not attributes you cannot refer to them like attributes: obj.NameAttr. Instead, get their (string) values like this: [1] ParaNum = number(obj) [2] ObjID = identifier(obj) [3] ObjLevel = level(obj)

- Louie

PS. The term "number" has been used to mean more than one thing and has changed over time in DOORS. Your DXL should always qualify what you mean, in this case "Paragraph Number" or "Absolute Number".
Report this to a Moderator Report this to a Moderator
 11-Aug-2006 15:41
User is offline View Users Profile Print this message


Brenda Cornell

Posts: 29
Joined: 7-Jul-2005

According to the view I have, Object Number is the attribute value I'm trying to get. So, I've tried all of the following:

TestNum= "Object Number(obj)"
string TestNum= "Object Number(obj)"
TestNum= "Number(obj)"
string TestNum= "Number(obj)"
TestNum= "Paragraph Number(obj)"
string TestNum= "Paragraph Number(obj)"

All of the above check out and have no errors, however I do get a run error indicating 'unknown Object attibute (attrname)'. I also substituted Object Level, Absolute Number and Paragraph Number as well with the same run error results.

Then I tried without the quotes as below, but checking the code nets a syntax error.
TestNum= Object Number(obj)
string TestNum= Object Number(obj)

Am I still missing something??

-------------------------
Brenda Heiss Cornell
Report this to a Moderator Report this to a Moderator
 11-Aug-2006 16:20
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

// try
display number obj
Report this to a Moderator Report this to a Moderator
 11-Aug-2006 17:10
User is offline View Users Profile Print this message


Brenda Cornell

Posts: 29
Joined: 7-Jul-2005

Answer Answer
Ah!!!! Got it. All I had to do instead of defining it first was simply display it in my output. It worked. thank you much.

-------------------------
Brenda Heiss Cornell
Report this to a Moderator Report this to a Moderator
 15-Aug-2006 11:06
User is offline View Users Profile Print this message


Hazel Woodcock

Posts: 78
Joined: 6-May-2005

As an alternative, you could create a dxl attribute using the wizard in the new attribute dialog. That allows you to choose which other attributes to include and in which order to show them.

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