RRC-RPE generate documents
![]()
Irina Vaganova (41●1●11●14)
| asked May 20 '13, 3:19 a.m.
retagged May 20 '13, 8:30 a.m. by Jason Warner (106●3)
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?
|
2 answers
![]()
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.
|
![]() 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. |
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.
Comments
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?