Bug 150776 Binding parameters of datasources are not evaluated when datasource in a library
I used to defined a datasource with binding parameters (depending on parameters ...). It works well when datasource is defined in the report, but when i tried to put this datasource in a library, binding expressions are not evaluated or not used by the datasource. When debugging the code, two datasources appears, the initial from the library (module=Library) and the linked from the report (module=ReportDesign). The dataset used the datasource of the report, but no binding values are found on the report datasource. The datasource from the library is evaluated correctly but not used.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/DesignElementHandle.java
String posnInfo = null;
			if ( container != null )
			{
				SlotHandle slot = element.getContainerSlotHandle( );
				ISlotDefn slotDefn = container.getElement( ).getDefn( )
						.getSlot( slot.getSlotID( ) );
				String slotDefnName = slotDefn.getXmlName( );
				int slotIndex = 1;
				slotInfo = "/" + slotDefnName + "[" + slotIndex 
						+ "]"; 
				int tagIndex = 1;
				for ( int i = 0; i < slot.findPosn( element ); i++ )
				{
					DesignElementHandle tmpElement = slot.get( i );
					if ( tmpElement.getDefn( ) == elementDefn )
						tagIndex++;
				}
				posnInfo = "[" + tagIndex + "]";
			}
			String elementPath = ""; 
			if ( !StringUtil.isBlank( slotInfo ) )
				elementPath = slotInfo;
			elementPath = elementPath + "/" + elementDefn.getXmlElement( ); 
			if ( !StringUtil.isBlank( posnInfo ) )
				elementPath = elementPath + posnInfo;
			sb.insert( 0, elementPath );
			element = container;
		} while ( element != null );
		return sb.toString( );
	}