Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Formatting Text in RPE

Hello,

I am making a report in RPE pulling from DOORS.

I would like for the report to print object number and object heading on the same line with out stripping the format.

I used a text box with this script expression:
   'heading_number + " " + object_heading'
but it strips the formatting.

Looking to the future, I would also like the heading number displayed in the table of contents.

Thanks for your help.
Dylan

0 votes



One answer

Permanent link
Hi Dylan,
You can use a Script Expression that also uses "level" attribute as explained in https://rpeactual.com/2016/09/17/printing-doors-object-heading-without-line-break/

The Script Expression can be:
var headingStartTag = '<heading level="' + level + '">';
var headingEndTag = '</heading>';
var val =  headingStartTag + heading_number + headingEndTag;
if(Object_Heading != ''){
 val = val + Object_Heading;
}
var replaceText = headingEndTag + headingStartTag;
val = val.replace(replaceText, " ");
val;

Hope you find the blog useful.

Regards,
Prasad

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 332
× 198

Question asked: Sep 16 '16, 4:45 p.m.

Question was seen: 3,585 times

Last updated: Sep 17 '16, 9:57 a.m.

Confirmation Cancel Confirm