In RPE, how do I include attributes of embedded artifactsd in a DOORS Next table?
2 answers
You will need to extract the URIs for the embedded artefacts from the text and then use that to do a secondary look up of the additional information by dynamically configuring a data source with the extracted resource information.
Comments
Use comments on an answer to reply, not a whole new answer. This keeps the discussion in a thread.
I'm not 100% sure what you're trying to do - is the Leader column the main artefact, and the Partner column the embedded one? Or is the whole thing the table, and Requirement1 and Requirement 2 are the embedded artefacts?
Thank you for the tip! My first Q&A so hopefully this time is correct.
The whole thing is a table, and Requirement 1 and Requirement 2 are embedded artifacts using link type = Embedded. Req 1 and Req 2 are not linked to each other, although it can happen if it helps with reporting.
OK this is quite a bit more complex. You're going to have to either preload the data or do a two pass approach:
- firstly you'll need to retrieve the table element, and then parse it as XHTML to find all the embedded artefacts and get their URIs
- then you'll need to use a dynamic data source to retrieve the detail from the embedded artefacts that you want, and store it
- then you'll need to render the table and once again find the position of the embedded elements, and insert the extra data as XHTML where you want it displayed
It's quite involved but definitely able to be done
I was afraid it was fairly complex since I've done various searches and haven't been able to find anything. Would you mind guiding me through this process? I am a novice at rpe so any resources are greatly appreciated.
Thank you Davyd.
In this case, I can look up the table artifact via "publish/resources?resourceURI=tableURI" and get the embedded artifacts info. Using "publish/text?resourceURI=tableURI" will provide the actual table and its content. I'm at a loss on how to combine the two to achieve something similar to below (adding attribute: owner)
Any suggestion is appreciated.