Why is PrintModuleTable returning richtext for type instead of link for a view column that is a link?
The built an RPE report from code in PrintModuleTable. When processing a column containing a link, the type should be URL but is returned as richtext. Hence, the section of code that checks for a link does not ever get executed.
Rich
|
One answer
PrintModuleTable uses views data source schema. You can make data request against the DNG view (for which you are generating the report) using a browser as explained in https://jazz.net/wiki/bin/view/Main/DNGModuleViewExternalRequest and check if the XML returned is as expected. If not, please raise a defect against DNG.
I remember a similar workitem created against DNG, where the data returned was text instead of richtext. I can confirm if you can provide the screenshot. You can upload it somewhere and share the link.
Comments
Thank you for the reply. Here is a snippet of the XML. Field:type should be "link" since this correlates to a column that is a link.
Here is the URI. You will need to change it based on your DNG instance. It only take a few minutes to compose this and try in your browser.
Thanks,
Rich
Rich DeMidio
commented May 02 '19, 9:36 a.m.
and a snippet of returned text since I exceeded the maximum number
<rrm:field field:fieldId="5" field:isContent="false">
<field:value field:type="richtext"> <div><a href="https://localhost:9443/rm/resources/_fXbMMVrsEemD-u_UQ3Y4MA">665:Product1 Electrode Design Verification</a><br/><a href="https://localhost:9443/rm/resources/_fXe2kFrsEemD-u_UQ3Y4MA">671:Product1 Electrode Wear Study</a><br/><a href="https://localhost:9443/rm/resources/_fb1LEVrsEemD-u_UQ3Y4MA">849:New Product Electrode Wear Study</a><br/> |
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.
Comments
Rich