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

RRC-RPE generate documents

 Hi,all

We are faced with the following problem: 
we used RRC 4.0.2 for requirements, then we generate some document with RPE 
So when we used embedded text artefact in requirements in our RPE document we get that this embedded text requirements insert with new line inside one paragraph.But we need output our requirements with embedded elements in one paragraph without additional carriage returns. 
But when we used inside requirements "soft-link" to another text element in RPE we get requirements as-is, without additional carriage return. But in this case we did not see any changes of linked artefact. 
So we want to get RPE document with requirements that have link to another artefacts and reflect all changes but inside in one paragraph there are no additional new line in text. 
How can we do that? Any ideas? 

0 votes

Comments
some additional:

How could we unload embedded artifacts in RRC requirements using RPE that they did not transferred to the new line as new artifacts in one paragraph? 



2 answers

Permanent link

Hi Irina

 

As I understand you have one artifact embedded in another artifact in RRC, in such a way that the text in the original artifact and the embedded one are in the same line in the rich text editor. But when you extract this info using RPE, you get a carriage return between the text from the original artifact and embedded one. If this is the case then this additional carriage return is induced by the RRC REST API.  But in RPE you can use a java script “replace” function to remove this additional carriage return coming from RRC.

 

For example :  <RRC attribute>.replace(/[\n\r]/g, ' ');

 

You need to use a script expression rather than data expression in RPE.

0 votes


Permanent link

Hi Irina

As I understand you have one artifact embedded in another artifact in RRC, in such a way that the text in the original artifact and the embedded one are in the same line in the rich text editor. But when you extract this info using RPE, you get a carriage return between the text from the original artifact and embedded one. If this is the case then this additional carriage return is induced by the RRC REST API.  But in RPE you can use a java script “replace” function to remove this additional carriage return coming from RRC.

For example :  <RRC attribute>.replace(/[\n\r]/g, ' ');

You need to use a script expression rather than data expression in RPE.

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
× 40

Question asked: May 20 '13, 3:19 a.m.

Question was seen: 5,782 times

Last updated: May 22 '13, 7:06 a.m.

Related questions
Confirmation Cancel Confirm