Bug 155929 [regression]Format doesn't work correctly in dynamic parameter
Description: Format doesn't work correctly in dynamic parameter Steps to reproduce: 1. New sample data source and dataset from ORDERS. 2. New a report parameter, integer, list, dynamic, select ORDERNUMBER as value and display column, set format to currency. 3. New a report paramter, datetime, list, dynamic, select ORDERDATE as value and display column , set format as short time. 4. Preview Expected result: Show format effect in popped up parameter dialog. Actual result: I saw "10100###0.00" in first paramter list and "2003/1/16 ...shorttime". The format codes were added to the end of the value.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/parameter/ComboBoxParameterFragment.java
import org.eclipse.birt.report.service.api.InputOptions;
import org.eclipse.birt.report.service.api.ParameterDefinition;
import org.eclipse.birt.report.service.api.ParameterGroupDefinition;
import org.eclipse.birt.report.service.api.ParameterSelectionChoice;
import org.eclipse.birt.report.service.api.ReportServiceException;
import org.eclipse.birt.report.utility.DataUtil;
/**
 * Fragment help rendering scalar parameter.
 * <p>
 * 
 * @see org.eclipse.birt.report.presentation.aggregation.BaseFragment
 */
public class ComboBoxParameterFragment extends ScalarParameterFragment
{
	/**
	 * Protected constructor.
	 * 
	 * @param parameter
	 *            parameter definition reference.
	 */
	public ComboBoxParameterFragment( ParameterDefinition parameter )
	{
		super( parameter );
	}
	protected void prepareParameterBean( HttpServletRequest request,
			IViewerReportService service, ScalarParameterBean parameterBean,
			Locale locale ) throws ReportServiceException
	{
		ViewerAttributeBean attrBean = (ViewerAttributeBean) request
				.getAttribute( IBirtConstants.ATTRIBUTE_BEAN );