Different filters for one data source
Posted: Fri Oct 19, 2012 11:46 am
Hello.
I have a problem with filters. I have a business object that contains a list of other object. Those other objects have some IDs. I want to render the list twice, each time with a different filter for the IDs, and in some cases it fails.
Here's the situation in more detail: I have a databand (with the data source set to the root object) and on this databand I have two panels with a databand each. So, two databands in one databand. The nested databands both have the same source: the list of objects with IDs. Apart from that, I have more databands on the page, and all of them have the root business object as the data source.
The filtering works fine, if in both cases the result of filtering is a non-empty list. If one or both of the lists is empty (if there are no objects that satisfy the filter condition), the whole page breaks apart: the bands with filters are rendered correctly, but every other band that has the root business object as data source disappears.
One solution to this problem would probably be placing those databands on separate pages, but I have reasons not to do this. I don't have any idea how else to fix it and I don't quite understand why this problem occurs. If you can help me in any way, I will really appreciate it.
I upload two attachments: one is a sample application that reproduces my problem. It creates the business objects and launches the Desinger. The second attachment is the report: on page 1 everything is ok, on page 2 the problem occurs and some databands are not rendered.
I have a problem with filters. I have a business object that contains a list of other object. Those other objects have some IDs. I want to render the list twice, each time with a different filter for the IDs, and in some cases it fails.
Here's the situation in more detail: I have a databand (with the data source set to the root object) and on this databand I have two panels with a databand each. So, two databands in one databand. The nested databands both have the same source: the list of objects with IDs. Apart from that, I have more databands on the page, and all of them have the root business object as the data source.
The filtering works fine, if in both cases the result of filtering is a non-empty list. If one or both of the lists is empty (if there are no objects that satisfy the filter condition), the whole page breaks apart: the bands with filters are rendered correctly, but every other band that has the root business object as data source disappears.
One solution to this problem would probably be placing those databands on separate pages, but I have reasons not to do this. I don't have any idea how else to fix it and I don't quite understand why this problem occurs. If you can help me in any way, I will really appreciate it.
I upload two attachments: one is a sample application that reproduces my problem. It creates the business objects and launches the Desinger. The second attachment is the report: on page 1 everything is ok, on page 2 the problem occurs and some databands are not rendered.