| Summary: | findStyle does not work for library styles in Webviewer (frameset) | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Jens Heidemann <jens.heidemann> |
| Component: | BIRT | Assignee: | Birt-Report-inbox <Birt-Report-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | Xiaoying Gu <bluesoldier> |
| Severity: | normal | ||
| Priority: | P3 | CC: | bluesoldier, rlu, ywang |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Jens Heidemann
In the web-view mode, the report design is flattened. Afterwards, there will be no libraries. During this process, only used styles are created in the flatten design to reduce the design size. So, it is correct that the 2nd style cannot be found. If 2nd style is used, it can be found. Jens, what's your purpose to write such javascript? Only for testing? First of all, sorry for late response. We want to have section headers within our Reports, such as "2. Details" or "3.1 Environment". Depending on their level they should have different styles, defined in a library. Because I'm too lazy to manually set the styles for each header and to make sure, that every header has still the correct style even after major changes, I looked for an easier solution. At the end, the complete script reads out an UserProperty, appropriates the name of the desired style and applies the (library-defined) style on the element. Additionally, it creates a TOC- entry and generates the section number, such as "2." or "3.1", according to its level. Any idea or advice for a better solution are welcome. BTW: Please, can you give me a hint why the report design is only "flattened" in web-view mode but not in "html-mode"? Thanks a lot! |