Bug 120068 TOC Item Expression is added automatically when adding the group key
Description: TOC Item Expression is added automatically when adding the group key Steps to reproduce: 1.Add a table binding with the dataset 2.Choose the table, add a group(say goupkey:row["CUSTOMERNUMBER"]) 3.Click "group" to invoke "Edit Group" dialog Expected result: Nothing in TOC Item Expression Actual result: The group key (row["CUSTOMERNUMBER"]) is added to the TOC Item Expression
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/GroupDialog.java
{
		if ( inputGroup.getName( ) != null )
		{
			nameEditor.setText( inputGroup.getName( ) );
		}
		columnList = DataSetManager.getCurrentInstance( )
				.getColumns( dataSetList );
		Iterator itor = columnList.iterator( );
		if ( !itor.hasNext( ) )
		{
			ExceptionHandler.openMessageBox( ERROR_DLG_TITLE_NO_DATA,
					ERROR_MESSAGE_NO_DATA,
					SWT.ICON_QUESTION );
			return false;
		}
		while ( itor.hasNext( ) )
		{
			keyChooser.add( ( (DataSetItemModel) itor.next( ) ).getDisplayName( ) );
		}
		String groupKey = inputGroup.getKeyExpr( );
		int index = -1;
		if ( groupKey != null )
		{
			for ( int i = 0; i < columnList.size( ); i++ )
			{
				if ( groupKey.equals( DEUtil.getExpression( columnList.get( i ) ) ) )
				{
					index = i;
					break;
				}