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: Rich Text Formatting Displays
Topic Summary:
Created On: 10-Feb-2003 12:13
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 Michael Sutherland, on Thursday, February 27, 2003 11:03 AM

Answer:
Paul,

Undocumented functions like probeAttr_ are, more often that not, function calls from a Telelogic DXL library, and not built-in functions as such. See the following thread for more insight on where these libraries are:

special functions

The DXL manual says:

...

Naming conventions

As a general rule, DXL reserves identifiers ending in one or more underscores (_, __) for its own
use. You should not use functions, data types or variables with trailing underscores, with the
exception of those documented in this manual.

....

I don't always follow that advise myself. The probeAttr_ function is safe because you can go look at the code for it, see what it does, and then determine for yourself if you want to use it.

[URL Edited - Steve A.]
 10-Feb-2003 12:13
User is offline View Users Profile Print this message


Paul Timms

Posts: 9
Joined: 10-Jan-2003

Hello,

I have a problem with DOORS 6.0 SR1 whereby a column of copied values is output with all its RTF information too.

I have a column in one module which is provided by the Link Wizard - so the data it is showing is not a real attribute of the module.

I have then modified the DXL to output to make a text attribute in the current object equal to the link value. This would then give the me real values as attributes which I need to store for linking by attribute.

The basic bit of code is:

s = probeRichAttr_(othero,"Object Text", false)
displayRich s
o."Object Short Text" = s

Where s is the value brought over the link.

If you change "displayRich" to just "display" then the link column outputs all the RTF junk too.

So is there a way of removing this - or a better bit of code?

Thank you

Report this to a Moderator Report this to a Moderator
 10-Feb-2003 19:01
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

If you want rich text all the way through the process, change the third line to:

s = probeRichAttr_(othero,"Object Text", false)
displayRich s
o."Object Short Text" = richText s

If you don't want rich text all the way through the process, change the first two lines to:

s = probeAttr_(othero,"Object Text", false)
display s
o."Object Short Text" = s

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
Report this to a Moderator Report this to a Moderator
 11-Feb-2003 16:30
User is offline View Users Profile Print this message


Paul Timms

Posts: 9
Joined: 10-Jan-2003

Thank you Michael, but unfortunately when I try the first approach it just outputs the rich text information twice.

and when I try the second it doesnt recognise "probeAttr_" and displays the error:

-E- DXL: <Line:68> incorrect arguments for function (probeAttr_)

I have attached the DXL being used for furhter anlalysis.

Cheers
Report this to a Moderator Report this to a Moderator
 11-Feb-2003 16:30
User is offline View Users Profile Print this message


Paul Timms

Posts: 9
Joined: 10-Jan-2003

Report this to a Moderator Report this to a Moderator
 11-Feb-2003 17:30
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

Well, the first approach works fine for me when I test it in DOORS 6.

The first line of the second approach should be changed to:

s = probeAttr_(othero,"Object Text")

I can't get at your posted "Rich text problem" code, so I can't diagnose your particular issue any further.

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
Report this to a Moderator Report this to a Moderator
 13-Feb-2003 10:37
User is offline View Users Profile Print this message


Paul Timms

Posts: 9
Joined: 10-Jan-2003

That oneline change you have suggested above cures the problem. Thank you very much for your help.

My remaining query is, Is there an update to the electronic DXL manual so that I can explore functions like probeAttr_ which arent in the current library?
Report this to a Moderator Report this to a Moderator
 14-Feb-2003 03:42
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

Answer Answer
Paul,

Undocumented functions like probeAttr_ are, more often that not, function calls from a Telelogic DXL library, and not built-in functions as such. See the following thread for more insight on where these libraries are:

special functions

The DXL manual says:

...

Naming conventions

As a general rule, DXL reserves identifiers ending in one or more underscores (_, __) for its own
use. You should not use functions, data types or variables with trailing underscores, with the
exception of those documented in this manual.

....

I don't always follow that advise myself. The probeAttr_ function is safe because you can go look at the code for it, see what it does, and then determine for yourself if you want to use it.

[URL Edited - Steve A.]

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com

Edited: 4-Jul-2003 at 15:22 by Telelogic DOORS Moderator
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.