Inquiry on how to apply Chart Theme dynamically in report [message #1230835] |
Mon, 13 January 2014 07:34 |
baihui He 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
|
|
|
Powered by
FUDForum. Page generated in 0.04613 seconds