Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Maximum on grouping

edited August 2006 in General
Hi

Using rb 7.04:

procedure TppReportWizard.SetGroupSelectButtons;
var
lbFieldsAvailable,
lbFieldsSelected: Boolean;
begin

lbFieldsAvailable := (FForm.lbxGroupFieldsAvailable.Items.Count > 0) and
(FGroupFields.Count < 3);
lbFieldsSelected := (FForm.lbxGroupFieldsSelected.Items.Count > 0);

FForm.spbSelectGroupField.Enabled := lbFieldsAvailable;
FForm.spbDeselectGroupField.Enabled := lbFieldsSelected;
end;

In this code there is a max of 3 group fields.

But when doing a multiselect i can select more fields.

Why is there a max of 3 ?

Eric

Comments

  • edited August 2006
    Hi Eric,

    For future reference, please do not post ReportBuilder source to these
    newsgroups.

    This limitation was probably added to prevent users from adding too many
    groups and risk creating a non-functional report due to ordering issues. We
    probably did this in an earlier version before the double click and
    multi-select options were available for the list box. The limitation will
    be removed for the next release of ReportBuilder.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.