Community
Participate
Working Groups
Build Identifier: We have tab structure in web page where the reports are getting rendered. one tab contain single report and another tab club both the reports. Now the problem is first report(in 1st tab) comes very nicely but in 2nd tab(contains second report+first report) is totally cluttered. Both are using the same style sheet which is being linked (not imported). some of the elements are taking classes which are not applied to them. More Details regarding the bug can be found at http://www.birt-exchange.org/org/forum/index.php/topic/20952-birt-putting-css-classes-forcefully-on-report/page__p__70427__fromsearch__1&#entry70427 Reproducible: Always Steps to Reproduce: 1. Create two reports 2. Apply style sheet to them 3. Include these two reports in one page The whole reports would be cluttered. When the reports would be seen individually, it would work fine. The reason for this is while rendering of the report report engine changes the class name of the style to style_1, style_2 etc. from the original names. As these two reports are rendered separately. So these styles contradict with each other.
You can use the HTMLRenderOption.setHTMLIDNamespace set the name prefix, so the name won't conflict with each other.
After use options.setHTMLIDNamespace("REPORT_PREFIX"); before rendering the report, the generated sytle name will be .REPORT_PREFIX_style_0{...} Set as worksforme.