![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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 | |
![]() |
|
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? |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.