Page 1 of 1

Disable group still groups items in nested group

Posted: Sun Jul 24, 2011 9:53 am
by fuhrj
I have a nested group that looks like this:

Group 1: Payment Type
Group 2: Product ID

There is a form that allows the user to indicate if they want to group by payment type and disable/enable Group 1 in form code:

Code: Select all

if (!chkGroupByPayment) {
GroupHeaderBand1.Enabled = false;
GroupFooterBand1.Enabled = false;
}
The problem I am having is that if Group 1 is disabled, it still groups by Payment Type.

The resulting output looks like this:
ORDER 1001 PRODUCT ABC123 PAY: Cash

Total for ABC123: 1

ORDER 1002 PRODUCT ABC123 PAY: Credit Card

Total for ABC123: 1
If Group 1 is disabled, it should only group by Product ID and look like this:

ORDER 1001 PRODUCT ABC123 PAY: Cash
ORDER 1002 PRODUCT ABC123 PAY: Credit Card

Total for ABC123: 2
How can I disable Group 1 so that it's grouping option is ignored and only Group 2 is active?

Disable group still groups items in nested group

Posted: Mon Jul 25, 2011 8:34 am
by Ivan
Hello,

Can you please send us a sample report template with data, which reproduces the issue?

Thank you.

Disable group still groups items in nested group

Posted: Mon Jul 25, 2011 3:25 pm
by fuhrj
Ivan wrote:Hello,

Can you please send us a sample report template with data, which reproduces the issue?

Thank you.
I've attached the report to my original post.

Thanks!

Disable group still groups items in nested group

Posted: Tue Jul 26, 2011 2:27 am
by Ivan
Hello,

Sorry, can you provide data for your report, which reproduces the issue?
We couldn't reproduce this bug on our data.

Thank you.

Disable group still groups items in nested group

Posted: Mon Aug 01, 2011 2:16 pm
by fuhrj
Ivan wrote:Hello,

Sorry, can you provide data for your report, which reproduces the issue?
We couldn't reproduce this bug on our data.

Thank you.
I uploaded a test database that you can run the report against.

Disable group still groups items in nested group

Posted: Tue Aug 02, 2011 10:51 am
by Ivan
Hello,

The issue is confirmed.
Unfortunately, this behavior of the GroupHeader is by design, and we do not plan to change it.
As a workaround, please check the report sample in the attachment.

Thank you.

Disable group still groups items in nested group

Posted: Tue Aug 02, 2011 1:47 pm
by fuhrj
Ok, thanks.

I'll take a look at the workaround.

Disable group still groups items in nested group

Posted: Tue Aug 02, 2011 11:31 pm
by Andrew
Hello,

Ok!

Let us know about the result.
Thank you.