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/utility/ParameterAccessor.java
if ( ( filePath == null ) || ( filePath.length( ) == 0 ) )
			return ""; 
		String sessionId = request.getSession( ).getId( );
		String fileSeparator = "\\"; 
		if ( filePath.lastIndexOf( fileSeparator ) == -1 )
			fileSeparator = "/"; 
		if ( filePath.lastIndexOf( fileSeparator ) != -1 )
		{
			documentName = filePath.substring( filePath
					.lastIndexOf( fileSeparator ) );
			temp = filePath
					.substring( 0, filePath.lastIndexOf( fileSeparator ) );
			if ( temp.lastIndexOf( fileSeparator ) != -1 )
				projectName = temp
						.substring( temp.lastIndexOf( fileSeparator ) );
			else
				projectName = temp;
			projectName = validateProjectName( projectName );
		}
		else
			documentName = filePath;
		String documentFolder = workingFolder + fileSeparator + DOCUMENTS_DIR
				+ fileSeparator + sessionId + projectName;
		String documentPath = documentFolder + documentName;
		return documentPath;
	}
	/**
	 * make sure the project name is a valid folder name. If the name contains
	 * ":", remove it. If the project name does not start with "\" or "/", add
	 * the file separator at the beginning of the name. If the project name is