Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Dynamic Themes For The Same Report.
Dynamic Themes For The Same Report. [message #634972] Mon, 25 October 2010 10:02 Go to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: October 2010
Junior Member
Is it possible to associate theme at runtime with a report ?
Can a theme be decided at runtime for a report, based on input parameter or something else ?

Thanks
GP
Re: Dynamic Themes For The Same Report. [message #634980 is a reply to message #634972] Mon, 25 October 2010 10:17 Go to previous messageGo to next message
Richard A. Polunsky is currently offline Richard A. PolunskyFriend
Messages: 212
Registered: July 2009
Location: Houston TX
Senior Member

Yes. I'm in the middle of a project and won't be able to look up the sample code for about a week.
Re: Dynamic Themes For The Same Report. [message #635343 is a reply to message #634980] Tue, 26 October 2010 13:56 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: October 2010
Junior Member
Thanks for the reply Richard.

No rush, i can wait until the next week.
In the meantime could you please let me know in which direction (parameters, setting rules or java/java script filters) shall i carry on working ?

Thanks
GP.
Re: Dynamic Themes For The Same Report. [message #639999 is a reply to message #635343] Thu, 18 November 2010 16:13 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: October 2010
Junior Member
Hi Richard,

Were you able to look into the code ?
Any pointers would be helpful.

Thanks
GP
Re: Dynamic Themes For The Same Report. [message #640013 is a reply to message #639999] Thu, 18 November 2010 16:34 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

If you have a theme in a library you should be able to change the theme
at runtime in a beforeFactory script like:

reportContext.getDesignHandle().setThemeName("Birt25.cm");

Where Birt25 is the lib and cm is the theme name.


Jason

On 11/18/2010 11:13 AM, guppi_76@indiatimes.com wrote:
> Hi Richard,
>
> Were you able to look into the code ?
> Any pointers would be helpful.
>
> Thanks
> GP
Previous Topic:how run the reports in a shared server?
Next Topic:Documentation on Javascript
Goto Forum:
  


Current Time: Wed Apr 24 18:45:11 GMT 2024

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

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

Back to the top