on 11-08-2009 9:43 AM
Dear experts,
i would like to have a combo box with the chart types when the user change the selection at runtime automatically the chart type change to pie or line or bar or whatever he selected. i am using sap business graphics
could someone guide me how to achieve this target
Context
+ chartType (BusinessGraphicsType)
+ chartTypeInvalid (boolean)
ChartTypeSelector : DropDownByKey, selectedKey -> @chartType, onSelect -> ChangeChartType (action)
void onActionChangeChartType(...)
{
wdContext.currentContextElement().setChartTypeInvalid(true);
}
void wdDoModifyView(...)
{
if ( wdContext.currentContextElement().getChartTypeInvalid() )
{
IWDBusinessGraphics gfx = (IWDBusinessGraphics) view.getElement("BusinessGraphics1");
gfx.setChartType( wdContext.currentContextElement().getChartType() );
wdContext.currentContextElement().setChartTypeInvalid(false);
}
}
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.