Bug 200133 Chart can not share the column binding from table item[00]
Description: Chart can not share the column binding from table item[00] Step: 1. New a datasource and dataset 2. New a table named table1 and binding the dataset 3. New a chart and binding the sharing result set on table1 Actual result: The data columns have been not share on the chart Exceptioon result: The data column binding will share on the chart
chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/builder/DefaultDataServiceProviderImpl.java
public String getCurrentStyle( )
	{
		return null;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.chart.ui.interfaces.IDataServiceProvider#setStyle(java.lang.String)
	 */
	public void setStyle( String styleName )
	{
		
	}
	public Object[] getDataForColumns( String[] sExpressions, int iMaxRecords,
			boolean byRow )
	{
		
		byRow = false;
		Object[] array = new Object[sExpressions.length];
		for ( int i = 0; i < sExpressions.length; i++ )
		{
			Object[] innerArray = new Object[ROW_COUNT];
			for ( int j = 0; j < ROW_COUNT; j++ )
			{
				String str = sExpressions[i];
				int intStart = str.lastIndexOf( ' ' ) + 1;
				int index = Integer.valueOf( str.substring( intStart,
						intStart + 1 ) ).intValue( ) - 1;
				innerArray[j] = new Integer( ( (String[]) getPreviewData( ).get( j ) )[index] );
			}