Bug 189397 Columns for exported should be listed as display order or order in binding pane.[0001]
Description: Columns for exported should be listed as display order or order in binding pane. Build number:2.2.0.v200705281033 Steps to reproduce: 1. New sample db and dataset from OFFICES. 2. Drag the dataset to layout 3. Preview in Web Viewer 4. Click Export Data button. Expected result: Columns are listed as display orders Actual result: Columns are listed in meaningless order. Error log:N/A
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/api/querydefn/BaseQueryDefinition.java
* transform engine to optimize the query if the details are not used.
	 * 
	 * @return true if the detail rows are used, false if not used
	 */
	public boolean usesDetails( )
	{
		return hasDetail;
	}
	
	
	/**
	 * @param usesDetails Whether detail rows are used in this query
	 */
	public void setUsesDetails(boolean usesDetails) 
	{
		this.hasDetail = usesDetails;
	}
	/**
	 * Returns the parent query. The parent query is the outer query which encloses
	 * this query
	 */
	public IBaseQueryDefinition getParentQuery() 
	{
		return parentQuery;
	}
	
	/**
	 * Gets the maximum number of detail rows that can be retrieved by this report query
	 * @return Maximum number of rows. If 0, there is no limit on how many rows this query can retrieve.
	 */