Bug 180405 The grand total's result is incorrect[1102]
Description: The grand total's result is incorrect[1102] Build number: 2.2.0.v20070402-0630 Steps to reproduce: 1, Using the attached design file 2, Preview the results and check the grand total of QUANTITY_PRODUCT Expected result: 42, 7, 13, 5 Actual result: Only calculate the latest row of QUANTITY Error log:
data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/DataSetIterator.java
{
				temp = new ColumnMeta( level.getName( ), true, new TimeValueProcessor(level.getDateTimeLevelType( )) );
				temp.setDataType( DataType.INTEGER_TYPE );
			}
			else
			{	
				temp = new ColumnMeta( level.getName( ), true, null );
				temp.setDataType( type );
			}
			metaList.add( temp );
			Iterator it = level.attributesIterator( );
			while ( it.hasNext( ) )
			{
				LevelAttributeHandle levelAttr = (LevelAttributeHandle) it.next( );
				ColumnMeta meta = new ColumnMeta( OlapExpressionUtil.getAttributeColumnName( level.getName( ),
						levelAttr.getName( )), false, null );
				meta.setDataType( ModelAdapter.adaptModelDataType( levelAttr.getDataType( ) ) );
				metaList.add( meta );
				query.addResultSetExpression( meta.getName( ),
						new ScriptExpression( ExpressionUtil.createJSDataSetRowExpression( levelAttr.getName( ) ) ) );
			}
			
			String exprString = ExpressionUtil.createJSDataSetRowExpression( level.getColumnName( ) );
			
			query.addResultSetExpression( level.getName( ),
					new ScriptExpression( exprString ));
			
			GroupDefinition gd = new GroupDefinition( );
			gd.setKeyExpression( ExpressionUtil.createJSRowExpression( level.getName( ) ) );
			query.addGroup( gd );