Publishing Engine and DOORS - multivalued Enumerated types date extrtaction
Using DOOR Snext 7.0.2 and Rational Publishing Engine.
I have no issues getting enumerated data out when there is only one value allowed.
How do I get the data for a multivalued enumerated type out into a single cell within a WORD table? I htink it is getting the data but not containing it to a single cell.
Thanks for any help with this
One answer
Hello
The list of the selected values are return in their own XML element: <attribute:customAttribute ... />
Example, 3 values were selected for the Applicable Baseline attribute.
<rrm:attributes>
<attribute:objectType attribute:itemId="OT_54fusP5EEe2mj7H4PMEmyg" attribute:name="Feature" attribute:projectAreaItemId="_14xw0P5EEe2mj7H4PMEmyg" attribute:projectAreaName="JKE Banking (Requirements Management)">
<attribute:customAttribute attribute:datatype="http://www.w3.org/2001/XMLSchema#int" attribute:isEnumeration="true" attribute:isMultiValued="true" attribute:itemId="AD_5rPNQCofEe61PrRcm04QYA" attribute:literalId="AT_5ZPeUCofEe61PrRcm04QYA#_EO7wUyy6FDao7cdYuoRI7A"
attribute:literalName="B2" attribute:name="Applicable Baseline" attribute:value="1" />
<attribute:customAttribute attribute:datatype="http://www.w3.org/2001/XMLSchema#int" attribute:isEnumeration="true" attribute:isMultiValued="true" attribute:itemId="AD_5rPNQCofEe61PrRcm04QYA" attribute:literalId="AT_5ZPeUCofEe61PrRcm04QYA#_fCpoke6RIxTygHoo0WpH1w"
attribute:literalName="B1" attribute:name="Applicable Baseline" attribute:value="0" />
<attribute:customAttribute attribute:datatype="http://www.w3.org/2001/XMLSchema#int" attribute:isEnumeration="true" attribute:isMultiValued="true" attribute:itemId="AD_5rPNQCofEe61PrRcm04QYA" attribute:literalId="AT_5ZPeUCofEe61PrRcm04QYA#_EtWz5DsuHeactP8mSXHx1w"
attribute:literalName="B3" attribute:name="Applicable Baseline" attribute:value="2" />
<attribute:customAttribute attribute:datatype="http://www.w3.org/2001/XMLSchema#int" attribute:isMultiValued="false" attribute:itemId="identifier" attribute:name="Identifier" attribute:value="30909" attribute:valueTS="" />
<attribute:customAttribute attribute:datatype="http://www.w3.org/2001/XMLSchema#int" attribute:isEnumeration="true" attribute:isMultiValued="false" attribute:itemId="AD_54UIgv5EEe2mj7H4PMEmyg" attribute:literalId="AT_54XL1P5EEe2mj7H4PMEmyg#_54Xy4P5EEe2mj7H4PMEmyg"
attribute:literalName="Draft" attribute:name="Status" attribute:value="0" />
<attribute:customAttribute attribute:datatype="http://www.w3.org/2001/XMLSchema#int" attribute:isEnumeration="true" attribute:isMultiValued="false" attribute:itemId="AD_54S6YP5EEe2mj7H4PMEmyg" attribute:literalId="AT_54ZoE_5EEe2mj7H4PMEmyg#_54aPIf5EEe2mj7H4PMEmyg"
attribute:literalName="Medium" attribute:name="Stability" attribute:value="1" /></attribute:objectType>
</rrm:attributes>
You should collect them and concatenate them into String variable and then print that string in the Cell.
When you query the attributes, sort them by attribute:name, and check for the following tags to determine what to do:
-
attribute:isEnumeration
- attribute:isMultiValued
Regards
Pierre