Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358622 - Chart titles should allow for javascript expressions
Summary: Chart titles should allow for javascript expressions
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 3.7.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-Chart-inbox@eclipse.org CLA
QA Contact: Maggie Shen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-22 12:23 EDT by john mcteague CLA
Modified: 2011-10-24 03:37 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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