Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic creation of business graphics.

Hi,

i have a piece of code which dynamically create a business graphics. If i use the same node data and create BG in statically.. i am able to view the graph. In case of dynamic creation , i am getting graphical rendering error. Have i missed something here..

The piece of code i had used is..

	IWDBusinessGraphics bg = (IWDBusinessGraphics)view.createElement(IWDBusinessGraphics.class,null);
		
		IWDCategory c = (IWDCategory)view.createElement(IWDCategory.class,null);
	//	c.setDescription("tableutility");       
		c.bindDescription(wdContext.getNodeInfo().getAttribute(IPrivateSDNUtilityView.IContextElement.TEST));                                                                                
bg.setCategory(c);
		bg.setDimension(WDBusinessGraphicsDimension.PSEUDO_THREE);
		
		IWDSimpleSeries ss = (IWDSimpleSeries)view.createElement(IWDSimpleSeries.class,null);
		ss.bindValue(wdContext.nodeDepartments().getNodeInfo().getAttribute(IPrivateSDNUtilityView.IDepartmentsElement.NO_OF_PEOPLE));
		ss.setLabel("Simple Series");
		ss.setLabel("No of People");
		bg.addSeries(ss);
		bg.setChartType(WDBusinessGraphicsType.COLUMNS);
		bg.bindSeriesSource(wdContext.nodeDepartments().getNodeInfo());
		bg.setIgsUrl("http://<hostname>:40080");

Please help.

Regards

Bharathwaj

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question