Mater-Detail with missing detail items

Stimulsoft Reports.NET discussion
Post Reply
remus
Posts: 24
Joined: Wed Aug 30, 2006 7:38 pm
Location: Australia

Mater-Detail with missing detail items

Post by remus »

I have successfully created a master-detail report using you examples.
However, your example with the beverages assumes that all beverages are in a category.

The data I have is in 2 tables Customers and CustomerContacts
THere are 300 Customers in the Customer table. However only some of those customers have additional Contact records in the CustomerContact table.

I am trying to create a Customer List report which shows all 300 customers (in the Master Band) and then list all the contacts associated with that customer in the Detail Band.

When I run the report it only lists the customers that have associated records in the contact table. Any customers that do not have any contact information in the contact table are being filtered out by the relation between the 2 datasources.

What am I doing wrong? What type of report should I be creating to solve my problem: Master-Detail, Sub-report, or Heirarical?
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Mater-Detail with missing detail items

Post by Brendan »

I believe you need to set the "Print if Detail Empty" property on the Detail Band that contains the Contact information.
Mark Smith
Posts: 37
Joined: Tue Jun 13, 2006 8:59 am
Location: Yorkshire, UK

Mater-Detail with missing detail items

Post by Mark Smith »

It's the way the behaviour of the master band changes just because a detail band is present.

This catches my users out almost 100% of the time, so I changed the default to True.



Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Mater-Detail with missing detail items

Post by Edward »

Mark wrote:It's the way the behaviour of the master band changes just because a detail band is present.

This catches my users out almost 100% of the time, so I changed the default to True.
We've changed the default value of the PrintIfDetailEmpty to True.

Thank you.
Post Reply