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: Formatting tracked by history?
Topic Summary:
Created On: 19-Apr-2004 08:59
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, March 11, 2005 4:50 PM

Answer:
Yes, changing display options does NOT affect history because it does NOT modify an object: it only changes how it looks to YOU. Yes, that means you may see an object differently than someone else. Notice that the display settings basically affect Font and Size based on object depth. This is similar to modifying your Windows Desktop size settings: DOORS looks different to you but doesn't change anything.

But that's not the same as changing the BOLD/ITALIC settings within an object since DOES modify the object itself; and will generate History.

- Louie
 19-Apr-2004 08:59
User is offline View Users Profile Print this message


Pieter DE WAARD

Posts: 73
Joined: 11-Jul-2003

Can anybody confirm our experience that changing the display options (font size displayed on the screen) affects history (DOORS 7)? We are making history dumps to Excel with every baseline, and since I needed to adapt display options for better readability during a recent meeting, I noticed that these richText noise appears in the history, showing that the attribute has changed. Not useful at all, in my view, as the content of the attribute is unchanged. Is this a bug or a feature?

This means the history dump script will need to (1) strip any history entry of richText (how is this done?) information and (2) compare if there is really a difference between OldVal and NewVal.

Any views on this?

- Pieter

-------------------------
Pieter de Waard
www.nhindustries.com
Report this to a Moderator Report this to a Moderator
 19-Apr-2004 17:49
User is offline View Users Profile Print this message


Pieter DE WAARD

Posts: 73
Joined: 11-Jul-2003

In the mean time, we have stripped away the RTF information, but this then clearly shows OldVa; = NewVal, which raises the question: why is this done by DOORS? Is it because the strikethru, underlining, bold and Italics are RTF-stuff you want to trace with history?

-------------------------
Pieter de Waard
www.nhindustries.com
Report this to a Moderator Report this to a Moderator
 19-Apr-2004 21:52
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You'll need to write a StripRT function to strip RT from the strings. In v6/v7 such a function features "RichTextParagraphs" where you get the rtp.text and separate them with a CR, but don't end with a CR. In v5 this function features "RichText" rt.text chunks, each optionally ending in a CR if rt.newline is true. The rt.newline function works INCORRECTLY in v6 (and presumably v7), so the same function will NOT work in v5 and v6.

I think History should record formatting-only changes: lets not let Telelogic decide what's an "important" change and what is not.

Good luck with History. Many of the "parameter" only apply when the History.type is of a certain value: the OldVal and NewVal parameters are undefined, for example, when the type is "Create Attr". Be sure to check for type "modify" before accessing them.

- Louie
Report this to a Moderator Report this to a Moderator
 20-Apr-2004 08:05
User is offline View Users Profile Print this message


Pieter DE WAARD

Posts: 73
Joined: 11-Jul-2003

Thanks Louie,

We succeeded in stripping the RT, but will look into how it was done. Maybe your suggestion is a more proper way. And, yes, I agree with you on the point of what is important. After some reflection we decided to doe the test ourselves if the content jas changed. If not, a Boolean will reflect this information.

Another question: I notice in DOORS 7 (compared to 5.2) that they have added a function in the history DB that adds "red lining" showing the differences. Does anybody know a DXL function that does this, or is it to be developed by the user?

- Pieter

-------------------------
Pieter de Waard
www.nhindustries.com
Report this to a Moderator Report this to a Moderator
 20-Apr-2004 09:18
User is offline View Users Profile Print this message


Judith Underwood

Posts: 35
Joined: 25-Sep-2002

There is a "diff" function for generating redlined text -- it's in the DXL manual for version 7.0. It takes three Buffers -- two for the input and one to put the result in.

On the original question, changing display options in itself will not affect history. I've just changed my display settings, opened a module, opened an object for inplace editing, and then clicked elsewhere without making a change. The object isn't marked as being modified and I can close the module without getting a warning about saving. But I can imagine a situation where the RTF markup might change in an invisible way.

Judith
Report this to a Moderator Report this to a Moderator
 20-Apr-2004 09:54
User is offline View Users Profile Print this message


Pieter DE WAARD

Posts: 73
Joined: 11-Jul-2003

Thanks Judith,

Maybe the cause-and-effect relationship is not so clear in the example I described above. SHould look closer at what caused the RT to be included. In my perception, the display options was the only changes applied, but maybe there is something else. Fact remains, that I have OldVal <> NewVal, where the delta is only in the RT (OldVal has no RT, NewVal has it).

Will try to apply the diff function.

-------------------------
Pieter de Waard
www.nhindustries.com
Report this to a Moderator Report this to a Moderator
 20-Apr-2004 15:37
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
Yes, changing display options does NOT affect history because it does NOT modify an object: it only changes how it looks to YOU. Yes, that means you may see an object differently than someone else. Notice that the display settings basically affect Font and Size based on object depth. This is similar to modifying your Windows Desktop size settings: DOORS looks different to you but doesn't change anything.

But that's not the same as changing the BOLD/ITALIC settings within an object since DOES modify the object itself; and will generate History.

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