Bug 145970 [REGRESSION] Set format in parameter dialog will lose the orginal data set by user.
Reproduce: 1. New a report scalar parameter, "p1", in the initialize dialog, set format to be uppercase. 2. New a data set with query "select * from CLASSICMODELS.CUSTOMERS where CLASSICMODELS.CUSTOMERS.CONTACTFIRSTNAME = ?". And bind the data set parameter to the report parameter "p1". 3. Insert a table into layout view, drag column [CUSTOMERNUMBER], [CONTACTLASTNAME], [CONTACTFIRSTNAME] from Data Explorer into table detail row respectively. 4. Preview. In the pop-up parameter dialog, type "Eric". Press "ok". Actually result: There was no data displayed. Expected result: There is one record whose first name is "Eric" in database.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/actionhandler/BirtCacheParameterActionHandler.java
import org.eclipse.birt.report.service.api.IViewerReportService;
import org.eclipse.birt.report.soapengine.api.Data;
import org.eclipse.birt.report.soapengine.api.GetUpdatedObjectsResponse;
import org.eclipse.birt.report.soapengine.api.Operation;
import org.eclipse.birt.report.soapengine.api.Oprand;
import org.eclipse.birt.report.soapengine.api.Update;
import org.eclipse.birt.report.soapengine.api.UpdateData;
import org.eclipse.birt.report.utility.ParameterAccessor;
import com.ibm.icu.util.ULocale;
public class BirtCacheParameterActionHandler extends AbstractBaseActionHandler
{
	/**
	 * Constructor.
	 * 
	 * @param context
	 * @param operation
	 */
	public BirtCacheParameterActionHandler( IContext context,
			Operation operation, GetUpdatedObjectsResponse response )
	{
		super( context, operation, response );
	}
	protected void __execute( ) throws RemoteException
	{
		ViewerAttributeBean attrBean = (ViewerAttributeBean) context.getBean( );
		assert attrBean != null;
		try
		{
			
			String reportDesignName = attrBean.getReportDesignName( );