Bug 199537 Fail to display data in Web viewer[0002]
Description: Fail to display data in Web viewer Build number:2.2.1.v200708101407 Steps to reproduce: 1. Preview attached report in Web Viewer. Expected result: Display data. Actual result: No data. Error log:n/a
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ReportDesignSerializer.java
List images = (List) targetDesign.getLocalProperty( targetDesign,
				IModuleModel.IMAGES_PROP );
		if ( images == null )
		{
			images = new ArrayList( );
			targetDesign.setProperty( IModuleModel.IMAGES_PROP, images );
		}
		Iterator embeddedImages = externalStructs.values( ).iterator( );
		while ( embeddedImages.hasNext( ) )
		{
			EmbeddedImage image = (EmbeddedImage) embeddedImages.next( );
			targetDesign.rename( image );
			images.add( image );
		}
	}
	/**
	 * Adds elements values to the target. These elements are not directly in
	 * source design. May resides in libraries of source design.
	 */
	private void addExternalElements( )
	{
		List tmpElements = new ArrayList( );
		tmpElements.addAll( externalElements.keySet( ) );
		List processedElements = new ArrayList( );
		int index = 0;
		while ( processedElements.size( ) < externalElements.size( ) )
		{
			DesignElement originalElement = (DesignElement) tmpElements
					.get( index++ );
			addExternalElement( tmpElements, processedElements, originalElement );