Bug 121166 in the second time use of scripted data set, the result is null
1: Create a scripted data source 2: Create a scripted data set 3: Drag this data set to report design to create a table 4: Do step 4 again to create the second table 5: Preview report, the first table has result but the second table is null Expected: 5: the first table and the second table have the same result
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/DtEScriptExecutor.java
/*******************************************************************************
 * Copyright (c) 2005 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.report.engine.script.internal;
import org.eclipse.birt.data.engine.script.JSMethodRunner;
import org.eclipse.birt.report.engine.api.script.IReportContext;
import org.mozilla.javascript.Scriptable;
public abstract class DtEScriptExecutor extends ScriptExecutor
{
	protected static final String DATA_SET = "DataSet";
	protected static final String DATA_SOURCE = "DataSource";
	protected static final String BEFORE_OPEN = "beforeOpen";
	protected static final String BEFORE_CLOSE = "beforeClose";
	protected static final String AFTER_OPEN = "afterOpen";
	protected static final String AFTER_CLOSE = "afterClose";
	protected IReportContext reportContext;
	private JSMethodRunner runner;
	public DtEScriptExecutor( IReportContext reportContext )
	{
		this.reportContext = reportContext;
	}
	protected JSMethodRunner getRunner( Scriptable scope, String type,
			String name )