How to Generate RPE report (with IBM RDNG data source) with table caption being printed in center
![]() Hi All,
When I create a table in DNG and add table caption, in the RPE Generated report we are getting table caption at the leftmost side after table.
I wanted to know how to align table caption in RPE template
|
3 answers
![]() As a author of the workaround in the ticket I think I should answer this.
For the text element that is displaying the text you should add following code.
var match = {};
var patt = /(<table[^>]>(<caption[^>]>(?:.|\n)?<\/caption>)?(?:.|\n)?<\/table>)/g; while ((match = patt.exec(div))) { var table = match[1]; var caption = match[2]; if (caption) { table = table.replace(caption, ""); table = '<div style="text-align:center;"><span>Table '+caption+"</span></div>" + table; div = div.replace(match[1], table); } }
This code is moving <caption> to span outside of the table (before it). That is only way how I was able to implement it.
Prashant mentioned the ticket which was requested opened by me
|