String functionName = slot.functionMenu.getSelectedItem().toString();
if (slot.aggregate == null) {
NewAggregateCommand cmd =
new NewAggregateCommand(report, fieldWidget, (Group)key,
functionName);
cmd.perform();
commands.add(cmd);
slot.aggregate = cmd.getAggregateWidget();
}
else { // Already have one; change to selected func