Bug 158262 OK button should be grayed out when no column is binded
OK button should be grayed out when no column is binded Steps to reproduce: 1. Add a data source Driver:net.sourceforge.jtds.jdbc.Driver (v0.9) 2. Add a data set. Select data set type "SQL Stored Procedure Query" 3. Edit this data set "{call counterInT1(?)} " 4. Add a data set parameter Name: param1 type: integer direction:output" 5. Add a data and bind it to the data set in the layout In the column binding edit page, Name: Param, Data Type: Integer Direction: Output 6. Change the data's binding to none 7. Right click the data and choose "Change Data Column" in the context menu and changeing the data's binding back to data set Expected result: OK button should be grayed out Actual result: OK button is enabled
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ColumnBindingDialog.java
private static final String MSG_DELETE = Messages.getString( "ColumnBindingDialog.Text.Del" );
	private static final String DEFAULT_COLUMN_NAME = "[result_set_col_name]"; 
	private static final String dummyChoice = "dummy"; 
	public static final String DEFAULT_DLG_TITLE = Messages.getString( "ColumnBindingDialog.DialogTitle" ); 
	private static final String ALL = Messages.getString( "ColumnBindingDialog.All" );
	private static final String NONE_AGGREGATEON = Messages.getString( "ColumnBindingDialog.AGGREGATEON.NONE" );
	private static final String CHOICE_FROM_CONTAINER = Messages.getString( "ColumnBindingDialog.Choice.FromContainer" );
	private static final String CHOICE_NONE = Messages.getString( "ColumnBindingDialog.NONE" );
	private static final String LABEL_COLUMN_BINDINGS = Messages.getString( "ColumnBindingDialog.Label.DataSet" ); 
	private static final String WARN_COLUMN_BINDINGS = Messages.getString( "ColumnBingingDialog.Label.Warn" ); 
	
	
	private static final String COLUMN_NAME = Messages.getString( "ColumnBindingDialog.Column.Name" ); 
	private static final String COLUMN_DATATYPE = Messages.getString( "ColumnBindingDialog.Column.DataType" ); 
	private static final String COLUMN_EXPRESSION = Messages.getString( "ColumnBindingDialog.Column.Expression" ); 
	private static final String COLUMN_AGGREGATEON = Messages.getString( "ColumnBindingDialog.Column.AggregateOn" ); 
	private static final String INPUT_PROPMT = Messages.getString( "ColumnBindingDialog.InputPrompt" ); 
	private static final IChoiceSet DATA_TYPE_CHOICE_SET = DEUtil.getMetaDataDictionary( )
			.getStructure( ComputedColumn.COMPUTED_COLUMN_STRUCT )
			.getMember( ComputedColumn.DATA_TYPE_MEMBER )
			.getAllowedChoices( );
	private static final IChoice[] dataTypes = DATA_TYPE_CHOICE_SET.getChoices( null );
	private static final String[] dataTypeDisplayNames = ChoiceSetFactory.getDisplayNamefromChoiceSet( DATA_TYPE_CHOICE_SET );
	private boolean canSelect = false;
	protected ReportItemHandle inputElement;
	
	
	private TableViewer bindingTable;
	private ExpressionCellEditor expressionCellEditor;
	private String selectedColumnName = null;