Bug 200289 Aggregate on both table and group if the shared aggregation only aggregates on a group[0005]
Description: Aggregate on both table and group if the shared aggregation only aggregates on a group[0005] Build number: 2.2.0.v20061107-0630 Steps to reproduce: 1, New a aggreagation on a table1 and aggregate on group1 2, New table2 share the result set of table1 3, New a aggregation on table2 and check the aggregate on status 4, Or open the attached report design Expected result: Only aggregate on group as same as table1's aggregation Actual result: aggregate on both table and group
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/BindingDialogHelper.java
gridData = new GridData( );
		gridData.verticalAlignment = GridData.BEGINNING;
		lblAggOn.setLayoutData( gridData );
		Composite aggOnComposite = new Composite( composite, SWT.NONE );
		gridData = new GridData( GridData.FILL_HORIZONTAL
				| GridData.GRAB_HORIZONTAL );
		gridData.horizontalSpan = 2;
		aggOnComposite.setLayoutData( gridData );
		layout = new GridLayout( );
		layout.horizontalSpacing = layout.verticalSpacing = 0;
		layout.marginWidth = layout.marginHeight = 0;
		layout.numColumns = 2;
		aggOnComposite.setLayout( layout );
		btnTable = new Button( aggOnComposite, SWT.RADIO );
		btnTable.setText( getBindingHolder( ) instanceof TableHandle ? TABLE
				: LIST );
		btnTable.addSelectionListener( new SelectionListener( ) {
			public void widgetDefaultSelected( SelectionEvent e )
			{
			}
			public void widgetSelected( SelectionEvent e )
			{
				cmbGroup.setEnabled( false );
			}
		} );
		WidgetUtil.createGridPlaceholder( aggOnComposite, 1, false );
		btnGroup = new Button( aggOnComposite, SWT.RADIO );
		btnGroup.setText( GROUP );
		btnGroup.addSelectionListener( new SelectionListener( ) {
			public void widgetDefaultSelected( SelectionEvent e )