It's all about the answers!

Ask a question

Why is PrintModuleTable returning richtext for type instead of link for a view column that is a link?


Rich DeMidio (112) | asked May 01 '19, 11:18 a.m.
edited May 01 '19, 11:56 a.m.
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

Comments
Rich DeMidio commented May 01 '19, 11:32 a.m.
Please note that I tried to upload a screenshot but apparently I am not worthy since I have less than 60 reputation points.  Not kidding, that is the message I received.

Rich

One answer



permanent link
Subramanya Prasad Pilar (4.6k16) | answered May 02 '19, 5:36 a.m.
edited May 02 '19, 5:40 a.m.
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
Rich DeMidio commented May 02 '19, 9:34 a.m. | edited May 02 '19, 9:37 a.m.
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


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.