Project: Birt
Bug 142376 Set initial AggregateOn selection based on group level of data item
Reported: 2006-05-17 20:09:38 | Status: resolved fixed

Create a table with a group. The following is the most common operation sequence for a user to insert an aggregate into the header of that group: (1) Insert a data item to the header of the group (2) In the ensuring "Select Data Binding" dialog, insert a new data binding and then edit the expression to create the aggregate. Note that in Step (2), the "AggregateOn" field is currently initially set at "None", which is almost certainly wrong since the user is creating an expression to be used in a header element. The user must then manually set the AggregateOn field to match the group level of the data item using the new expression. This is rather inconvenient. Desirable behavior for the "Select Data Binding" dialog when the user inserts a new expression: * If the dialog is invoked to select a data binding for a Data Item placed in the header or footer of a group G, the new expression's AggregateOn field should be initially set to group G. * If the dialog is invoked to select a data binding for a Data Item placed in the table/list header or footer, the new expression's AggregateOn field should be initially set to "Overall". * In all other cases, the initial AggregateOn should be "None" (as it is today)

Files changed in fix:
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dnd/InsertInLayoutUtil.java UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/util/DataUtil.java UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ColumnBindingDialog.java