RPE: Modify quick print template for Module, which REST URI to use?
![]()
I struggle in testing a modification of the existing printModuleBook.dta using the RPE.
I am not able to figure out how the URL for the data source has to look like. The data source schema shows <artifacts>, <info> and <headers> but I am not able to produce that output from a REST call. Please advise, which REST URL RRC is using for the quick print. |
Accepted answer
![]()
Look for the DSX on the server temp files or by looking to *.dsx then open the file with RPE, there you will find the datasource URL, paste that on a browser.
On the displayed XML file you will have something similar to this: <rrm:headers rrm:totalCount="2"> <field:name field:fieldId="1" field:width="45">ID</field:name> <field:name field:fieldId="2" field:width="507">Primary Text</field:name> </rrm:headers> <ds:artifact rdf:about="https://server:9443/rm/resources/_b5746163026a41d88eeb38eec2734820" rrm:format="Text"> <rrm:fields> <rrm:field field:fieldId="1" field:isContent="false"><field:value field:type="text">363</field:value></rrm:field> <rrm:field field:fieldId="2" field:isContent="true"><field:value field:type="richtext"><div><div><p id="_1382116502749"> test before the baseline</p></div></div></field:value></rrm:field> </rrm:fields> </ds:artifact> So notice that the headers include the information of the name and number of fields for the module report and the artifacts contains the value for those fields for a given artifact. That information is dynamic and will change depending on what your do on your module ! so if you add more colums to your module the number of fields will increase. Managing that information correctly and you will be able to create any report related to modules with the same information that is included on the modules on web. Regards. Dr. Markus A. Thies selected this answer as the correct answer
|