Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » BIRT : Styles overlapping in HTML Page(BIRT : Styles overlapping in HTML Page)
BIRT : Styles overlapping in HTML Page [message #934137] Fri, 05 October 2012 17:43 Go to next message
BIRT BIRD is currently offline BIRT BIRDFriend
Messages: 11
Registered: October 2012
Junior Member
I am an in-depth lover and user of BIRT.

but I am facing an issue while rendering the Reports in my JSP.

All the CSS styles and formatting (for example : font-color Red) I applied in my BIRT report design are displayed correctly jsp. But when I close this page and open another one which has different formatting properties (for example font-color Green) the style properties of the previous jsp is being applied to the newly opened one. i.e. Latest jsp displays some elements in Red color and some in Green color. Sad . And only thing which is common for these two jsps is that , both of them have the same parent jsp.

I think this is happening because the BIRT itself is generating some in line styles (something like style_4, style_5, style_6 etc.) which are applied while rendering html data.

This issue does not happen when I render the report in PDF.

What could be the cause of this ?
How can I resolve this issue sothat I can render reports in a way that styles are not getting overlapped.

Please help....

thanks,
BIRT Bird

[Updated on: Fri, 05 October 2012 18:11]

Report message to a moderator

Re: BIRT : Styles overlapping in HTML Page [message #934198 is a reply to message #934137] Fri, 05 October 2012 18:50 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Are you using the API, tag libraries or the Viewer?
Take a look at the namespace option when using the API:
http://www.eclipse.org/birt/phoenix/project/notable3.7.php#jump_8

Are you applying individual properties in the BIRT report or are you using BIRT styles?


Jason
Re: BIRT : Styles overlapping in HTML Page [message #934231 is a reply to message #934198] Fri, 05 October 2012 19:33 Go to previous messageGo to next message
BIRT BIRD is currently offline BIRT BIRDFriend
Messages: 11
Registered: October 2012
Junior Member
thanks for the fast response.

I am using API.

Yes I tried using namespace options:

options.setOutputFormat("HTML");
options.setEnableInlineStyle(false);

Also I tried setting as individual properties, BIRT style and external CSS files.

Nothing seems to be working. Sad

thanks,
Re: BIRT : Styles overlapping in HTML Page [message #934244 is a reply to message #934231] Fri, 05 October 2012 19:43 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Did you try the namespace?
HTMLRenderOption options = new HTMLRenderOption();
options.setOutputFileName("output/resample/renderoptions.html");
options.setOutputFormat("HTML");
options.setHTMLIDNamespace("mytest")

Jason
Re: BIRT : Styles overlapping in HTML Page [message #934304 is a reply to message #934231] Fri, 05 October 2012 21:05 Go to previous messageGo to next message
BIRT BIRD is currently offline BIRT BIRDFriend
Messages: 11
Registered: October 2012
Junior Member
No, I hadn't tried that way.

So I tried just like you said now:

htmlOptions.setOutputFileName("output/resample/renderoptions.html");
htmlOptions.setOutputFormat("html");
htmlOptions.setHTMLIDNamespace("mytest");

Then it is not at all giving any HTML data.
What is meant by "output/resample/renderoptions.html" ?
Do I have to change something in this as per my context?


thanks,
Re: BIRT : Styles overlapping in HTML Page [message #937315 is a reply to message #934304] Mon, 08 October 2012 22:05 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

No that was the example output. Do not use that. Just add
htmlOptions.setHTMLIDNamespace("mytest"); to your existing options list. Note that your map is probably not named htmlOptions

Jason
Re: BIRT : Styles overlapping in HTML Page [message #938266 is a reply to message #937315] Tue, 09 October 2012 18:16 Go to previous messageGo to next message
BIRT BIRD is currently offline BIRT BIRDFriend
Messages: 11
Registered: October 2012
Junior Member

I tried as you said by just giving htmlOptions.setHTMLIDNamespace("mytest");

Still no luck. Sad
It still conflicts with the styles of the previously opened jsp.

thanks,
BIRT BIRD
Re: BIRT : Styles overlapping in HTML Page [message #938305 is a reply to message #938266] Tue, 09 October 2012 18:58 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you open a bugzilla entry for this?

Jason
Re: BIRT : Styles overlapping in HTML Page [message #938315 is a reply to message #938305] Tue, 09 October 2012 19:06 Go to previous messageGo to next message
BIRT BIRD is currently offline BIRT BIRDFriend
Messages: 11
Registered: October 2012
Junior Member
Sure. Do you have a link for posting BIRT issues in Bugzilla?
If so, could you please share it?

-thanks,
Re: BIRT : Styles overlapping in HTML Page [message #939448 is a reply to message #938315] Wed, 10 October 2012 19:17 Go to previous messageGo to next message
BIRT BIRD is currently offline BIRT BIRDFriend
Messages: 11
Registered: October 2012
Junior Member
I have opened a bug in Buzilla.

Bug # 391597.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=391597

thanks,
Re: BIRT : Styles overlapping in HTML Page [message #939863 is a reply to message #939448] Thu, 11 October 2012 05:09 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Thanks for posting.


Jason
Re: BIRT : Styles overlapping in HTML Page [message #940485 is a reply to message #939863] Thu, 11 October 2012 17:28 Go to previous messageGo to next message
BIRT BIRD is currently offline BIRT BIRDFriend
Messages: 11
Registered: October 2012
Junior Member
Thanks Jason.

Do you have any idea on how long they will take to address this Bug?

thanks,
Re: BIRT : Styles overlapping in HTML Page [message #941698 is a reply to message #940485] Fri, 12 October 2012 19:29 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Not really sure. To move it along you may want to add code that can be easily executed to show the issue. BTW does this issue happen with only a couple of the report items or all of them. The items that have the issue, are you setting properties on or are you applying a style?

Jason
Re: BIRT : Styles overlapping in HTML Page [message #941773 is a reply to message #941698] Fri, 12 October 2012 21:14 Go to previous messageGo to next message
BIRT BIRD is currently offline BIRT BIRDFriend
Messages: 11
Registered: October 2012
Junior Member
Ok. This happens with all reports for which I have applied some formatting with Color, Font and Border.
Also it happens in both cases (applying a named CSS style or applying individual properties.)

thanks,
Re: BIRT : Styles overlapping in HTML Page [message #946226 is a reply to message #941773] Tue, 16 October 2012 03:11 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Any chance you can upload some code to reproduce?

Jason
Previous Topic:Dynamic columns in BIRT
Next Topic:accessing data between tables with different databinding
Goto Forum:
  


Current Time: Fri Nov 28 03:40:10 GMT 2014

Powered by FUDForum. Page generated in 0.02951 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software