BIRT report shows HTML tags in the WI summary
I have a report developed which displays the HTML tags in the Work Item Summary area.
If the work item summary contains 'The "sample.pdf" file' then my report displays the work item summary as 'The "sample.pdf"&nbsp' which looks odd in display text. It adds html tags for quotes and spaces etc.. But my equivalent query returns normal text as expected. I would like my report also display the normal text. How can i change it? |
9 answers
Which table is your report using?
|
Which table is your report using? I am using "com.ibm.team.workitem.WorkItem" and "com.ibm.team.workitem.Category" tables under LIVE_SNAPSHOT. |
LIVE_SNAPSHOT exposes the raw repository data. So you are getting the data as it is stored in the DB.
|
Thanks Rafik. Actually most of my reports uses LIVE_SNAPSHOT only. So, Is there any workaround or any thoughts to eliminate these tags while displaying report result?
|
Add a computed column to your data set that is defined using the following expression:
(new java.lang.String(row)).replaceAll("<*>", ""); The above should remove all the HTML tags. |
Thanks Rafik. I will check it.
By the way, will it impact performance of the report since it will validate all the rows one by one before display? |
It may impact performance, if you are displaying a lot of summaries. But my instincts tell me not by very much.
|
|
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.