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: Display CP Proposed Object Text in Column using DXL
Topic Summary: Need instruction on accessing the Proposed Object Text attribute
Created On: 6-Jul-2007 20:41
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 Monday, July 9, 2007 2:18 PM

Answer:
Where did you find those "S_ATTRxxx" constants?

Try this dxl:
print S_ATTR_REASON_FOR_CHANGE "\n"
print S_ATTR_PROPOSED_OBJECT_TEXT "\n"

Notice there is no DXL error for line 1 but there is for line 2; thus there is no such constant. Hard code it to "Proposed Object Text". Before you do that, I'd make sure that this CP actually proposes changing object text. That would look something like this:

string UsingText = probeAttr_(oProposal, "Using Object Text")
if (UsingText == "True") display "Proposed Text: " probeAttr_(oProposal, "Proposed Object Text")

- Louie
 6-Jul-2007 20:41
User is offline View Users Profile Print this message


Gigi Harrington

Posts: 2
Joined: 5-Jul-2007

I'm a newbie to DOORS and DXL, so I apologize if this is an obvious question, but I haven't found anyone asking it in the forums.

I'm trying to alter layout DXL "Change Proposal Information" to display the Proposed Object Text next to each object with a change proposal.  But I can't figure out how to address the Proposed Object Text attribute.  I have a feeling it's in a different module than the other CP Attr's, but have no idea where to find the reference. 

Has anyone else done this?

The current code uses the following:

                        display "Change Type: " probeAttr_(oProposal, S_ATTR_CHANGE_TYPE)
                        display "Priority: " probeAttr_(oProposal, S_ATTR_PRIORITY)
                        display "Status: " sStatus
                        display "Reason For Change: " probeAttr_(oProposal, S_ATTR_REASON_FOR_CHANGE)

I tried just adding another line:

  display "Proposed Text: " probeAttr_(oProposal, S_ATTR_PROPOSED_OBJECT_TEXT)

but that doesn't work.

Any ideas?
Report this to a Moderator Report this to a Moderator
 8-Jul-2007 20:36
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
Where did you find those "S_ATTRxxx" constants?

Try this dxl:
print S_ATTR_REASON_FOR_CHANGE "\n"
print S_ATTR_PROPOSED_OBJECT_TEXT "\n"

Notice there is no DXL error for line 1 but there is for line 2; thus there is no such constant. Hard code it to "Proposed Object Text". Before you do that, I'd make sure that this CP actually proposes changing object text. That would look something like this:

string UsingText = probeAttr_(oProposal, "Using Object Text")
if (UsingText == "True") display "Proposed Text: " probeAttr_(oProposal, "Proposed Object Text")

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