Master Detail Band Filter Expression
How does the filter expression on detail band work
i have google but all i get is the documentation
I am having trouble figuring this out [img]style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> I have Master Band - Items and Just below that i add a Detail Band - With Customers so it look like this master - detail Ok so i set filter at the detail band CustomerItemID = ItemID so basically i want to see any customer that is connected to this item but when i preview i only see item that has customer not all items[/img]
[img]style_emoticons/<#EMO_DIR#>/ph34r.gif" style="vertical-align:middle" emoid=":ph34r:" border="0" alt="ph34r.gif" />
why is the expression filtering the top also
is it normal
by the way, somehow the first time i did it, it actually work
it did show me with all item and any customer that linked to it
but after that no matter how i try, it does not,
i have no idea where i went wrong or was it a fluke[/img]
i have google but all i get is the documentation
I am having trouble figuring this out [img]style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> I have Master Band - Items and Just below that i add a Detail Band - With Customers so it look like this master - detail Ok so i set filter at the detail band CustomerItemID = ItemID so basically i want to see any customer that is connected to this item but when i preview i only see item that has customer not all items[/img]
This discussion has been closed.
Comments
Hello!
Select your Master DataBand (Items) in the report designer.
In the Properties window, under the Data section (or by searching for the property), locate `PrintIfDetailEmpty` and change its value from `False` to `True`. Alternatively, programmatically in C#:
masterDataBand.PrintIfDetailEmpty = true;
Additionally, check the syntax of the Filter property for the Customers detail band:
If the report script language is C# (the default), the filter expression must use the == operator and full field names enclosed in square brackets:
[Customers.CustomerItemID] == [Items.ItemID]
The = operator without square brackets is used only when the script language is VB.NET