How to use printModuleBook.dta ?
RPE ships with a template for publishing DNG modules called printModuleBook.dta
|
4 answers
That report uses a hidden REST API system (views) to configure itself. Last time I checked, that wasn't documented, but you can get the URI from your rrdg and rm logs after you run an instance of the report (there's some cache value stuff in the URI so that link will go stale eventually and cannot be completely constructed without actually printing a printModule report). Most of the external variables aren't needed, it's just for author data and stuff. URIs starting with an _underscore are not ones you need to configure; just give it the correct views and it will configure the further URIs as needed with the appropriate RPE steps. You'll pretty much have to reverse engineer the printModule report by running it with the views URI you pull from the rrdg logs. Punch that URI through with your credentials and watch the log in RPE Studio and you'll have a good starting point.
|
Thanks June,
Comments
June Boston
commented Apr 11 '18, 1:05 p.m.
So, if you look in rm.log you will see the views URI looks like this: https://MYINSTANCE/rm/publish/views?moduleURI=https%3A%2F%2FMYINSTANCE%2Frm%2Fresources%2F_XYgngB0dEeaYCZ1vd-339w&projectURI=https%3A%2F%2FMYINSTANCE%2Frm%2Frm-projects%2F_frjFFFFGA44%2Fcomponents%2F_Ffjfhr333DDDDFFviewCacheId=3a31be29-e4fb-4ada-bd93-31f49b3ac1df&showAttributes=false&showEmbedTitles=true&maximiseEmbeds=true&size=100&vvc.configuration=https%3A%2F%2FMYINSTANCE%2Frm%2Fcm%2Fstream%2F_fjhth444hfhfFFF So the key thing there is the viewCacheId=somehexvalue. You cannot make that part up. From what we can tell, it is provided by the context of the RRDG popup in DNG that generates the report. When we develop reports using the views URI, we first go to our module-to-test, run a printmodulebook report, get the URI as above, and use exactly the URI in the logs. You can drop the vvc.configuration if you don't need it, you can do it without the size= either, but you need that viewCacheId and you cannot make one up. Sometimes it expires and you have to get a new one, like if the server bounces.
June Boston
commented Apr 11 '18, 1:21 p.m.
Furthrmore:
|
You can check the document specification (.dsx) file created by DNG (RRDG). Configure "Logging" as explained in https://rpeactual.com/2014/11/26/how-to-enable-dng-debugging-for-document-generation/ and you will find the .dsx in %temp%\rrc_reports folder.
|
^^Thanks June
|
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.