![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Text Compare between Current/Proposed attributes in CP Topic Summary: Created On: 14-Apr-2005 16:47 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: You only want to do this when the 'Using Object Text' attribute is true. if so, this will get you started: Buffer From = create; To = create; Difference = create From = oSource."Object Text" To = oCP."Proposed Object Text" diff(Difference, From, To) DiffString = stringOf(Difference) | |
![]() |
|
Has anybody created a script or DXL attribute which highlights the differences between the current and proposed attributes in the CP module.
Our CP reviewers would like to make the changes more salient e.g. Current Object Text: The dog ran over the cat. Proposed Object Text: The dog ate the cate. Difference: ran changed to ate For deleted text, they would like to see the strikeout. Thanks in advance. Edited: 14-Apr-2005 at 16:51 by Janet Ma |
|
![]() |
|
![]() |
|
You only want to do this when the 'Using Object Text' attribute is true. if so, this will get you started:
Buffer From = create; To = create; Difference = create From = oSource."Object Text" To = oCP."Proposed Object Text" diff(Difference, From, To) DiffString = stringOf(Difference) |
|
![]() |
|
![]() |
|
In Layout DXL, use the 'displayRichWithColor' to get the colors from the diff fn.
So using Louie's example, display the result: displayRichWithColor DiffString Printing changes out in color really shows what has changed succinctly and makes the reviewers job a lot easier. ------------------------- Dave +44 (0)23 9270 5711 david.robbins@astrium.eads.net ~~~~~~~~~~~~~~~~~~~~ EADS Astrium, Anchorage Road Portsmouth. Hampshire. UK PO3 5PU |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.