Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358622

Summary: Chart titles should allow for javascript expressions
Product: z_Archived Reporter: john mcteague <john.mcteague>
Component: BIRTAssignee: Birt-Chart-inbox <Birt-Chart-inbox>
Status: NEW --- QA Contact: Maggie Shen <lshen>
Severity: normal    
Priority: P3 CC: bluesoldier
Version: 3.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description john mcteague CLA 2011-09-22 12:23:53 EDT
Build Identifier: 3.7.0

To make the chart title dynamic based on a report parameter I need to add the following:


/**
 * Called before generation of chart model to GeneratedChartState.
 * 
 * @param chart
 *            Chart
 * @param icsc
 *            IChartScriptContext
 */

function beforeGeneration( chart, icsc )
{
	chart.getTitle().getLabel().getCaption().setValue(
		icsc.getExternalContext().getScriptable().getParameterValue("MyParam"))
	
}

This is too complex, the ChartTitle input field on the designer should allow expressions and that should be passed down to the chart title at runtime.

Reproducible: Always