Skip to main content



      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 02:34
Eclipse UserFriend
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: Wed May 14 13:34:32 EDT 2025

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

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

Back to the top