Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » How to use report parameters dynamically set the chart type?(Dynamically set the chart type)
How to use report parameters dynamically set the chart type? [message #1234560] Wed, 22 January 2014 09:03
Li HuiPeng is currently offline Li HuiPengFriend
Messages: 1
Registered: January 2014
Junior Member
The report has a parameter named "chartType".
I set the beforeGeneration Event Function of the Chart:
function beforeGeneration(chart, icsc) {  
    var chartType = icsc.getExternalContext().getScriptable().getParameterValue("chartType");
    chartType = chartType;
    if (chartType != "" && chartType != null && chartType != "null") {
            chart.setType(chartType);
    }
    frame = new JFrame("chartType:111" + chart.getType() + "111");
    frame.setBounds(310, 220, 400, 20);
    frame.show();
}

After the test, get the value "Tube Chart" of the parameter chartType, but the chart type display is still the original Bar Chart.
Previous Topic:CJK Unified Ideographs Extension B Generate PDF problem
Next Topic:RCP Designer download only for Windows
Goto Forum:
  


Current Time: Thu Sep 19 21:05:46 GMT 2024

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

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

Back to the top