Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Inquiry on how to apply Chart Theme dynamically in report
Inquiry on how to apply Chart Theme dynamically in report [message #1230835] Mon, 13 January 2014 07:34
baihui He is currently offline baihui HeFriend
Messages: 1
Registered: January 2014
Junior Member
Hi experts,

I have a question about how to apply chart theme dynamically in report.

As you may know, in BRD Pro we can apply report them dynamically by using following code:

---------------------------
var t;


if (params["pTheme"].value == "New") {

t=reportContext.getReportRunnable().designHandle.getModuleHandle().findTheme("DynamicTheme.NewTheme"); reportContext.getReportRunnable().designHandle.getModuleHandle().theme = t;}

else {

t=reportContext.getReportRunnable().designHandle.getModuleHandle().findTheme("DynamicTheme.OldTheme"); reportContext.getReportRunnable().designHandle.getModuleHandle().theme = t;

}
----------------------

But this method is only useful for applying theme with report element like Grid/Table/Text...; For Chart theme, in report, we have to choose different chart theme in the drop menu of Theme option in Advanced section.

So does anybody know how to apply the different Chart theme dynamically when rendering a report by customized coding like example above?

Thanks,
Hui
Previous Topic:Changing Web Service Request Parameter's Value
Next Topic:missing chart
Goto Forum:
  


Current Time: Mon Sep 16 03:47:20 GMT 2024

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

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

Back to the top