It's all about the answers!

Ask a question

What datasource type is used in the default report templates for DNG?


David Clark (2341150) | asked Nov 16 '16, 12:04 p.m.
 I am trying to replicate the dataSource used in the printModuleBook.dta found in DNG.

The unique thing is it has a smaller schema than the normal DNG DB schema, but also has some fields I need access to.

How was this created?

views > dataSource > artifact > fields > field

Or can someone tell me how I can figure it out on my own? Where is the dataSource definition?

Thanks,

One answer



permanent link
Subramanya Prasad Pilar (4.6k15) | answered Nov 17 '16, 1:21 a.m.
You can check the .dsx(document specification) files created by DNG under <SERVER_INSTALLATION>\server\tomcat\temp\rrc_reports. If you open the .dsx file in RPE Launcher, you will find the actual "views" data source URL used for document generation.

This URL will be something like
https://<server>:9443/rm/publish/views?resourceURI=_LuJCayarEeOcGLR6nwopVQ&moduleURI=https://<server>:9443/rm/resources/_LuJCayarEeOcGLR6nwopVQ&projectURI=https://<server>:9443/jts/process/project-areas/_EcuF8hBsEeOL8ZVCaKK9GQ&viewCacheId=ddf236f6-f80d-49f0-ae8a-de02f0b792d4&showAttributes=false&showEmbedTitles=true&size=100

You can notice that request made by the publish report does several stuff - It includes  the project, the module and the cached view. Also, currently you cannot make a public call against "views" schema and DNG REST API does not support "views" artifact type.
Please refer these:
https://rpeactual.com/2014/07/28/one-more-technique-for-debugging-dng-document-generation/
https://jazz.net/wiki/bin/view/Main/RRCReportableRestAPI

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.