Bug 208845 The Not In filter doesn't work correctly when specify multiple values[07]
Description: The Not In filter doesn't work correctly when specify multiple values, but works only on single value. Build number: 2.3.0.v20071106-0800 Steps to reproduce: 1, New a table binding on customers dataset 2, New a Not In filter 3, Specify multiple values such as 103;112 4, Preview in layout Expected result: Both 103 and 112 should be filtered Actual result: 112 is still in preview result Error log:
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ModuleUtil.java
/**
	 * Checks instance's type is script or not.
	 * 
	 * @param instance
	 *            <code>MemberHandle</code> or <code>PropertyHandle</code>
	 * @return return true if it is script,else return false.
	 */
	private static boolean isValidScript( Object instance )
	{
		if ( instance instanceof MemberHandle
				|| instance instanceof PropertyHandle )
		{
			SimpleValueHandle temp = (SimpleValueHandle) instance;
			PropertyDefn defn = (PropertyDefn) temp.getDefn( );
			if ( defn.getTypeCode( ) == IPropertyType.LIST_TYPE )
			{
				if ( defn.getSubType( ).getTypeCode( ) == IPropertyType.EXPRESSION_TYPE )
					return true;
			}
			else
			{
				if ( defn.getTypeCode( ) == IPropertyType.EXPRESSION_TYPE
						|| defn.getTypeCode( ) == IPropertyType.SCRIPT_TYPE )
					return true;
			}
		}
		return false;
	}
}