Project

General

Profile

Bug #5094

reports do not display matrix or xml token data

Added by Daniel Crawl almost 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Category:
reporting
Target version:
Start date:
07/14/2010
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5094

Description

Reports do not display the contents of matrix tokens. I'm attaching an example kar.

matrix-reporting2.kar (5.78 KB) matrix-reporting2.kar Daniel Crawl, 07/14/2010 11:31 AM
xml-reporting.kar (7.64 KB) xml-reporting.kar Daniel Crawl, 07/14/2010 05:28 PM

History

#3 Updated by Derik Barseghian almost 9 years ago

A simple fix is to add:

if (token instanceof MatrixToken) {
value = String.valueOf( ((MatrixToken)token).toString());
}
if (token instanceof XMLToken) {
value = String.valueOf( ((XMLToken)token).toString());
}

to TokenUtil's getStringValue(Token token).
But maybe this isn't a nice enough formatting for the reporting 2.0 release?

#4 Updated by Daniel Crawl almost 9 years ago

For the xml case, JDOM's XMLOutputter could be used to format the xml string.

#5 Updated by Derik Barseghian over 8 years ago

Should be fixed in 2.0 at r25111.
Leaving open for testing and until checked into trunk.

#6 Updated by Derik Barseghian over 8 years ago

I checked this fix into trunk at r25112

#7 Updated by Redmine Admin about 6 years ago

Original Bugzilla ID was 5094

Also available in: Atom PDF