Bug 123174 inappropriate column header when inserting a table group
steps to reproduce: - create a table, bind it to an existing data set - insert a table group, e.g. row["CUSTOMERNUMBER"] - drag some data into table detail row - preview report expected behavior: - the column header should be the name of the column actual behavior: - the column header was expr. row["CUSTOMERNUMBER"]
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/GroupDialog.java
keyChooser.deselectAll( );
		if ( StringUtil.isBlank( key ) )
		{
			keyChooser.setText( "" );
			return;
		}
		for ( int i = 0; i < columnList.size( ); i++ )
		{
			if ( key.equals( DEUtil.getExpression( columnList.get( i ) ) ) )
			{
				keyChooser.select( i );
				return;
			}
		}
		keyChooser.setText( key );
	}
	private String getKeyExpression( )
	{
		String exp = null;
		if ( keyChooser.getSelectionIndex( ) != -1 )
		{
			exp = DEUtil.getExpression( columnList.get( keyChooser.getSelectionIndex( ) ) );
		}
		else
		{
			exp = keyChooser.getText( );
		}
		return exp;
	}
}