How to get table caption and table title from DOORS through RPE
2 answers
You should see the table caption at the bottom of the table by using dataSource/artifact/content/text/richTextBody/div in the RPE template.
The XHTML returned by DOORS Next Gen is as follows:
And RPE output will be as in the screen shot:
If you want to print caption in different location, you can use Script Expression (regexp) and get the text between "caption" tags, print that text again.
The XHTML returned by DOORS Next Gen is as follows:
And RPE output will be as in the screen shot:
If you want to print caption in different location, you can use Script Expression (regexp) and get the text between "caption" tags, print that text again.
You can refer http://www-01.ibm.com/support/docview.wss?uid=swg21431215
First, open DOORS module and select Edit->Attributes. Add attribute ("tableCaption") and set value for the new attribute "tableCaption" (right click on object / table and select Properties, go to Attribute tab and set value for the new attribute tableCaption).
In RPE, right click on DOORS data source schema (in Outline view), select "Edit Using Schema Discovery...". In the wizard, select "Module and object attributes", select the DOORS module, check the newly added attribute "tableCaption" and finish the wizard. You will find this under Module/object after this.
First, open DOORS module and select Edit->Attributes. Add attribute ("tableCaption") and set value for the new attribute "tableCaption" (right click on object / table and select Properties, go to Attribute tab and set value for the new attribute tableCaption).
In RPE, right click on DOORS data source schema (in Outline view), select "Edit Using Schema Discovery...". In the wizard, select "Module and object attributes", select the DOORS module, check the newly added attribute "tableCaption" and finish the wizard. You will find this under Module/object after this.
Comments
Hi prasad,
thanks for kind reply.
I am using RPE 2.0, In given link, can you please explain how you were able to add TableCaption and TableCaptionLabel attributes. Because i was not able to find this table caption under Module/object in my doors data source schema. So, can you please suggest the solution for the same.
thanks in advance
manoj
Updated the steps in the answer. Hope you get it working.