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: 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
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 Friday, April 15, 2005 12:14 AM

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)
 14-Apr-2005 16:47
User is offline View Users Profile Print this message


Janet Ma

Posts: 115
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 14-Apr-2005 22:56
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer 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)
Report this to a Moderator Report this to a Moderator
 15-Apr-2005 13:11
User is offline View Users Profile Print this message


Dave Robbins

Posts: 36
Joined: 9-Dec-2003

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