How to extract primary text of the linked artifact in DNG using RPE?
3 answers
Hi Jyotsna,
If you are referring to traced artifacts, dataSource/artifact/traceability/links/Link/relation will give the href(url) for the linked artifacts. You can dynamically configure the data source for linked artifact and get the artifact details (including text).
If you want to print different links ("Satisfied By", "Link To" or "Link From") columnwise, you can add conditions / filters on dataSource/artifact/traceability/links/Link/title and print in different cells within a table row. You can use the sample template for reference. Use the module URL (https://server:port/rm/publish/modules?resourceURI=<ID>) for document generation.
Comments
Hello Subramanya,
I followed the same steps as you mentioned and I have observed the following things :
- When we are generating the document from the RPE dsx file, the above mentioned steps works fine to extract primary text.
- When we are generating the document from the DNG by deploying the templates in rrdg folder, the above steps does not work and primary text field is empty.
Can you please tell if there is any specific configuration that needs to be done for the templates that are deployed in DNG server?
Thank you.
Note that to generate documents from DNG, the data source name should be that of supported artifact types. If you are referring to sample template, you cannot use _resourcesLinked as data source schema name. Please try changing its name. If it doesn't work, you can provide your template so that we can have a look.
Hi Subramanya, can you help me with an extension of what is there in the reference template? It's kind of urgency for me.