Community
Participate
Working Groups
When the record details are displayed from the Graph Response viewer an Iframe displays the XML. Iframe only uses the GET function. There is a limit on the number of characters you can pass. If the limit is reached, it produces a length error message.
Deferring to i12 since these bugs are not critical or blocking.
You can use the following api to format a XML string. this.UIContext.xmlFormatter.format(xmlString)
Is there a test case for this? - JT
(In reply to comment #3) > Is there a test case for this? > > - JT > You can try and edit the Example MDR xml files. Modify the xml files to add more content.
Approaching 8K, I get 'Connect was reset' in the IFrame and no errors in either firebug or the java console. > this.UIContext.xmlFormatter.format(xmlString) and what does this do exactly? i.e. how does it apply to this specific situation? - JT
(In reply to comment #5) this.UIContext.xmlFormatter.format(xmlString) Takes in a xml string and formats it. It indents the string and color codes element tag name and attributes. It also color codes comments. We should not use iframe because of the limitation suggested by this bug. Instead we should use a div element and set the contents of the div element to the formatted string. Maybe you can change the template file by removing the iframe and replacing it with: <div>{$xmlFormatString}</div> In the dojo class you can define the xmlFormatString as this.xmlFormatString = this.UIContext.xmlFormatter.format(xmlString);
Created attachment 106868 [details] proposed look & feel of new records display frame I tried xmlFormatter and have attached a screenshot of what it might look like. - JT
Since we are displaying the xml details in a separate frame, can we stop also displaying them in the details pane? Reasoning is that xmlFormatter requires raw xml and the details pane can't display raw XML as text, so if we wanted to support both, we need the xml in both formats. easier to just have one I think. - JT
(In reply to comment #8) > Since we are displaying the xml details in a separate frame, can we stop also > displaying them in the details pane? > > Reasoning is that xmlFormatter requires raw xml and the details pane can't > display raw XML as text, so if we wanted to support both, we need the xml in > both formats. > easier to just have one I think. > > - JT > Yes I agree. We don't need to duplicate the xml in the details pane. This will clean up the details pane view as well.
These changes are checked in. - JT
The record detail now only displays in the pop up window. - JT
Verified with build (COSMOS-1.0.0-200808271150)