Publish DNG module attributes with RPE
How do I publish DNG module attributes using RPE? I am referring to a module artifact type, which has default and custom artifact attributes. How do I access these?
I've studied the schema for DNG Text and DNG Module, as well as the sample DNG templates that come with RPE.
Thanks for your help!
Accepted answer
Bob, not sure when/how I learned about this. Thought it was on you tube videos.
In a container grab
data/Source/artifact/collaboration/attributes/objectType/customerAttribute
Then check for the custom attribute @name
name=="your customer attribute name" (in quotes e.g. name=="specification_revision")
Then get the value (@value) contains the data held in the customer attribute.
2 other answers
Bob, there is a whole series of YouTube videos on how to do this. They are very helpful. This is where I started and have working RPE templates generating docs from DNG. RPE Template Tutorial
The newer versions of DNG (6.0.4+, maybe 6.0.3 - not 100% sure) has added visibility into "views" data source which is faster than the "modules" data source. Still trying to figure out how to use that one, but the "modules" data source works well.
Have fun,
David
Comments
Bob, not sure if you ever found a solution but the following has worked for me:
Configure a DNG Text data source using the URI https//[server]:[port]/rm/publish/resources?resourceURI=[module identifier]
You can now access the Module custom attributes using data/Source/artifact/collaboration/attributes/objectType/customerAttribute
The important bit is in the URI use "resourceURI" and not "moduleURI"
Hope this helps.
Paul