How to configure Metadata in a RPE Report to display all iterations of a project
CLM 4.0.1 RPE1.1.2.2
I've a report where I would like to enable the user to select on of the project iteration
REST Call below works fine
${public}/rpt/repository/foundation?fields=foundation/projectArea[itemId=${projectAreaUUID}]/(projectDevelopmentLine/iterations/(name|children/(name|children/(name))))
What should I put in the Display and Identifier fields?
a) /foundation/projectArea/projectDevelopmentLine/iterations/(name|children/(name|children/(name)))
==> ends with error: javax.xml.transform.TransformerException: A location step was expected following the '/' or '//' token.
b)/foundation/projectArea/projectDevelopmentLine/iterations/(name)
==> returns only the first level
I've a report where I would like to enable the user to select on of the project iteration
REST Call below works fine
${public}/rpt/repository/foundation?fields=foundation/projectArea[itemId=${projectAreaUUID}]/(projectDevelopmentLine/iterations/(name|children/(name|children/(name))))
What should I put in the Display and Identifier fields?
a) /foundation/projectArea/projectDevelopmentLine/iterations/(name|children/(name|children/(name)))
==> ends with error: javax.xml.transform.TransformerException: A location step was expected following the '/' or '//' token.
b)/foundation/projectArea/projectDevelopmentLine/iterations/(name)
==> returns only the first level
Accepted answer
You could use the "//" operator in your display and identifier expressions, i.e. "//name". This will search the entire result of your REST call for the "name" attribute, no matter where it is nested in the iteration tree.
Comments
Ok, ok I'm newbie :-)
Should I have found this in some doc? Can you give me some hints where to look at such "hidden" features
Thanks anyway, you made my day
Glad I could help :-) The display and identifier fields are just xPath expressions; so while we don't have any specific doc about how to construct them, you should be able to use any online resources about xPath to help you out . I'm not an expert at XPath myself, but I find this guide to be very helpful.