Bug 132401 access to value of display text of dynamic parameter
I have parameter "departmentID". This is dynamic parameter that get values from DataSet "departments". The parameter keeps department id value. I need to show on the report name of department beside using departmentId in dataset query of the report. It would be good to have the way to get name of department without creating additional dataset, additional report item such as table and without additional parameter bounding.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java
public void setContext( Object context, InputOptions options )
	{
		HttpServletRequest request = (HttpServletRequest) options
				.getOption( InputOptions.OPT_REQUEST );
		ServletContext servletContext = (ServletContext) context;
		ReportEngineService.getInstance( ).setEngineContext( servletContext,
				request );
	}
	public Map getParsedParameters( IViewerReportDesignHandle design,
			InputOptions options, Map parameters )
			throws ReportServiceException
	{
		Locale locale = (Locale) options.getOption( InputOptions.OPT_LOCALE );
		Collection parameterList = getParameterDefinitions( design, options,
				false );
		Map paramMap = new HashMap( );
		Boolean isDesignerBoolean = (Boolean) options
				.getOption( InputOptions.OPT_IS_DESIGNER );
		boolean isDesigner = ( isDesignerBoolean != null ? isDesignerBoolean
				.booleanValue( ) : false );
		IGetParameterDefinitionTask task = getParameterDefinitionTask( design );
		IReportRunnable runnable = getReportRunnable( design );
		Map configMap = runnable.getTestConfig( );
		for ( Iterator iter = parameterList.iterator( ); iter.hasNext( ); )
		{
			ParameterDefinition parameterObj = (ParameterDefinition) iter
					.next( );
			String paramValue = null;
			Object paramValueObj = null;
			String paramName = parameterObj.getName( );