Displaying object identifier in bold in Layout DXL column

I've created a view with a DXL layout column displaying the object id and object text of linked objects on separate lines. If there are multiple linked objects, a blank line is inserted between them. However, to make it more obvious where one object ends and the next one starts, I'd like to bold the id. Is there a way to do this, starting with the following code produced by the Analysis Wizard:

s = (identifier othero)
displayRich("\\pard " s)

Thanks,
Ken.
mcnairk - Wed Mar 25 09:05:42 EDT 2009

Re: Displaying object identifier in bold in Layout DXL column
Tony_Goodman - Wed Mar 25 09:13:56 EDT 2009

s = "{\\b " identifier(othero) " }"
displayRich(s)

Note that the space before the closing brace is part of the RTF markup and is required for this to work.

Re: Displaying object identifier in bold in Layout DXL column
Tony_Goodman - Wed Mar 25 09:16:19 EDT 2009

Tony_Goodman - Wed Mar 25 09:13:56 EDT 2009
s = "{\\b " identifier(othero) " }"
displayRich(s)

Note that the space before the closing brace is part of the RTF markup and is required for this to work.

Sorry, that was meant to say "the space after the \\b is necessary". Not sure how fingers lost contact with brain without the eyes noticing.

Re: Displaying object identifier in bold in Layout DXL column
mcnairk - Wed Mar 25 09:24:10 EDT 2009

Tony_Goodman - Wed Mar 25 09:16:19 EDT 2009
Sorry, that was meant to say "the space after the \\b is necessary". Not sure how fingers lost contact with brain without the eyes noticing.

Works like a charm! Thanks for the quick response.

Ken.

Re: Displaying object identifier in bold in Layout DXL column
SystemAdmin - Wed Mar 25 11:31:11 EDT 2009

Hi Ken,

We are planning to establish the links from test cases to the requirements modules.
Will it be possible for you to share the script you created for the DXL Layout column?
You would be saving some time for us.

Thanks

  • Krishna

Re: Displaying object identifier in bold in Layout DXL column
mcnairk - Wed Mar 25 11:47:23 EDT 2009

SystemAdmin - Wed Mar 25 11:31:11 EDT 2009
Hi Ken,

We are planning to establish the links from test cases to the requirements modules.
Will it be possible for you to share the script you created for the DXL Layout column?
You would be saving some time for us.

Thanks

  • Krishna

See attached. It displays on separate lines the object identifier (in bold), heading, and text (including rich test and OLE objects) of out-links. You can easily add in any other attributes you wish to display. This has been quickly tested in DOORS 8.2 but is provided "as-is".
Attachments

attachment_14233543_display_linked_objects.dxl

Re: Displaying object identifier in bold in Layout DXL column
SystemAdmin - Tue Mar 31 11:37:59 EDT 2009

mcnairk - Wed Mar 25 11:47:23 EDT 2009
See attached. It displays on separate lines the object identifier (in bold), heading, and text (including rich test and OLE objects) of out-links. You can easily add in any other attributes you wish to display. This has been quickly tested in DOORS 8.2 but is provided "as-is".

Thanks,Ken

  • Krishna

Re: Displaying object identifier in bold in Layout DXL column
SystemAdmin - Thu May 21 08:33:04 EDT 2009

mcnairk - Wed Mar 25 11:47:23 EDT 2009
See attached. It displays on separate lines the object identifier (in bold), heading, and text (including rich test and OLE objects) of out-links. You can easily add in any other attributes you wish to display. This has been quickly tested in DOORS 8.2 but is provided "as-is".

This is a nice convenient dxl. What does it look like for incoming links?

Re: Displaying object identifier in bold in Layout DXL column
tlwtheq - Wed Dec 02 13:47:26 EST 2009

Tony_Goodman - Wed Mar 25 09:13:56 EDT 2009
s = "{\\b " identifier(othero) " }"
displayRich(s)

Note that the space before the closing brace is part of the RTF markup and is required for this to work.

I'm trying to do something like this but using a string variable without
much luck. This is in a layout DXL script.

string s = "{\\b " construct " }"
    mainColumn = richText(s)
    displayRich(mainColumn)

 


construct is a string variable that has been assigned some text.

The output is really wild. And DOORS takes construct as a literal.

example:

what should be "1 (U) Introduction"
becomes "{\b 1 1 1 1 1 1 1 1 1 1 1 1 construct }

Am I trying to do something that cannot be done?

Thanks,
Tara

 

Re: Displaying object identifier in bold in Layout DXL column
llandale - Wed Dec 02 16:55:00 EST 2009

tlwtheq - Wed Dec 02 13:47:26 EST 2009

I'm trying to do something like this but using a string variable without
much luck. This is in a layout DXL script.

string s = "{\\b " construct " }"
    mainColumn = richText(s)
    displayRich(mainColumn)

 


construct is a string variable that has been assigned some text.

The output is really wild. And DOORS takes construct as a literal.

example:

what should be "1 (U) Introduction"
becomes "{\b 1 1 1 1 1 1 1 1 1 1 1 1 construct }

Am I trying to do something that cannot be done?

Thanks,
Tara

 

Oh, this looks so familiar, let me guess who you are.

string s = "\\b " construct " \\b0 "

  • Louie

Re: Displaying object identifier in bold in Layout DXL column
ePiallat - Thu Dec 03 04:16:41 EST 2009

tlwtheq - Wed Dec 02 13:47:26 EST 2009

I'm trying to do something like this but using a string variable without
much luck. This is in a layout DXL script.

string s = "{\\b " construct " }"
    mainColumn = richText(s)
    displayRich(mainColumn)

 


construct is a string variable that has been assigned some text.

The output is really wild. And DOORS takes construct as a literal.

example:

what should be "1 (U) Introduction"
becomes "{\b 1 1 1 1 1 1 1 1 1 1 1 1 construct }

Am I trying to do something that cannot be done?

Thanks,
Tara

 

Warning, there are 3 "richText" perm series, with completely different purposes :

  • get text with rich text markups from an attribute or a column
  • set text of an attribute while interpreting rich text mark-ups
  • protect (escape) rich text mark-ups in a string (see "richText (of string)" in user manual

(there is a forth "richText" perm creating a DBE, but this is another subject. Joys of DXL and crazy overloaded functions.)

In your case, using richText with a string as argument and return type will add a backslash before backslashes and curly brackets, preventing "displayRich" to interpret them as rich text markers.

If you have no richText marker in your construct, but may have displayable brackets or backslashes, then type:

string s =  richText construct
mainColumn = "{\\b " s " }" 
displayRich(mainColumn)


On the other hand, if construct may contain actual rich text markers you neither want to interpret nor display, use:

 

string s =  richText (plainText construct)
mainColumn = "{\\b " s " }" 
displayRich(mainColumn)



And no, I have no idea why "construct" would be taken as a literal. IMHO the problem is earlier in code.
(You maybe have some construct = "some string" construct line, with unbalanced quotes)

- Éric



 

Re: Displaying object identifier in bold in Layout DXL column
Lion29 - Mon Aug 16 20:07:09 EDT 2010

SystemAdmin - Thu May 21 08:33:04 EDT 2009
This is a nice convenient dxl. What does it look like for incoming links?

Is there any method to highlight a particular word in the object text??

For Eg.: Assume that the object text is as follows:

"MKS Source Integrity v7.3 is a software by Mortice Kern Systems, .... See at a glance which files are checked out, which files have changed since check out"

Is there any possibility to highlight only "MKS Source Integrity" in the object text??