Bug 142404 [smoke][regression] dynamic parameter does not work properly
steps to reproduce: - create a report - create a data source - create a data set using the data set - create a dynamic parameter bound to the data set - preview report expected behavior: - dynamic parameter works properly actual behavior: - it simply didn't, there are no values listed in drop down box
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/GetParameterDefinitionTask.java
queryDefn.addResultSetExpression( keyValue, valueExpObject );
						
						String labelExpString = ( (ScalarParameterHandle) param )
								.getLabelExpr( );
						if ( labelExpString != null
								&& labelExpString.length( ) > 0 )
						{
							ScriptExpression labelExpObject = new ScriptExpression(
									labelExpString );
							
							String keyLabel = LABEL_PREFIX+parameterGroup.getName( ) + "_"
							+ ( (ScalarParameterHandle) param ).getName( );
	/*						labelMap.put( keyLabel, labelExpObject );
							queryDefn.getRowExpressions( ).add( labelExpObject );*/
							labelColumnBindingNames.add( keyLabel );
							queryDefn.addResultSetExpression( keyLabel, labelExpObject );
						}
						GroupDefinition groupDef = new GroupDefinition( );
						groupDef.setKeyExpression( valueExpString );
						queryDefn.addGroup( groupDef );
					}
				}
				queryDefn.setAutoBinding( true );
				
				IPreparedQuery query = dteDataEngine.prepare( queryDefn );
				IQueryResults result = query.execute( executionContext
						.getSharedScope( ) );
				IResultIterator resultIter = result.getResultIterator( );
				dataCache.put( parameterGroup.getName( ), resultIter );