ScriptExpression expression = new ScriptExpression( DEUtil.getExpression( columns[columnChooser.getSelectionIndex( )] ) );
String queryExpr = null; for ( int i = 0; i < columns.length; i++ ) { if ( columns[i].getName( ) .equals( columnChooser.getText( ) ) ) { queryExpr = DEUtil.getExpression( columns[i] ); break; } } if ( queryExpr == null ) { return; } ScriptExpression expression = new ScriptExpression( queryExpr );
	private void refreshValues( )	{		resultList.clear( );		if ( columnChooser.isEnabled( ) )		{			try			{				BaseQueryDefinition query = (BaseQueryDefinition) DataSetManager.getCurrentInstance( )						.getPreparedQuery( getDataSetHandle( ) )						.getReportQueryDefn( );				ScriptExpression expression = new ScriptExpression( DEUtil.getExpression( columns[columnChooser.getSelectionIndex( )] ) );				query.addExpression( expression, BaseTransform.ON_EACH_ROW );				IPreparedQuery preparedQuery = DataSetManager.getCurrentInstance( )						.getEngine( )						.prepare( (IQueryDefinition) query );				IQueryResults results = preparedQuery.execute( null );				if ( results != null )				{					IResultIterator iter = results.getResultIterator( );					if ( iter != null )					{						while ( iter.next( ) )						{							String result = iter.getString( expression );							if ( !StringUtil.isBlank( result )									&& !resultList.contains( result ) )							{								resultList.add( result );							}						}					}					results.close( );				}			}			catch ( Exception e )			{				ExceptionHandler.handle( e );				valueList.removeAll( );				valueList.deselectAll( );				updateButtons( );			}			filteValues( );		}		else		{			valueList.removeAll( );			valueList.deselectAll( );			updateButtons( );		}	}