If I use a query of this type:
(SELECT col1 AS id_item, col2 AS id_group FROM table1)
UNION
(SELECT col1 AS id_item, col2 AS id_group FROM table2)
defining a group based on id_group makes openrpt render only the first group. When the value in id_group changes, instead of generating a new group footer and group header section, the report just ends.
If, in the database, I create a new view using the exact same query as above, I can use that view and grouping works as expected, with header/footer generated every time the value in id_group changes. Read more »