![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Rich Text Formatting Displays Topic Summary: Created On: 10-Feb-2003 12:13 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() 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.] | |
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 ![]() |
|
![]() |
|
![]() |
|
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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? |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» Defect/Issue Tracking
»
Rich Text Formatting Displays
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.