Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Dynamic Themes For The Same Report.
Dynamic Themes For The Same Report. [message #634972] Mon, 25 October 2010 06:02 Go to next message
No real name is currently offline No real name
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 06:17 Go to previous messageGo to next message
Richard A. Polunsky is currently offline Richard A. Polunsky
Messages: 197
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 09:56 Go to previous messageGo to next message
No real name is currently offline No real name
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 11:13 Go to previous messageGo to next message
No real name is currently offline No real name
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 11:34 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
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: Thu Jul 31 22:01:37 EDT 2014

Powered by FUDForum. Page generated in 0.03349 seconds