Maximum on grouping
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com