Jade Report Writer outer joins
Posted: Fri Aug 07, 2009 1:18 pm
by Andrea Spurdle >> Tue, 6 May 2008 16:03:18 GMT
I have a problem with the Jade Report Writer, and I wonder if anyone knows of a solution to this.
I have a class of Campaign which has a reference allActivities. This is a collection which may contain 0, 1 or more activities.
I want to produce a report which will print
- one line for the campaign, if the campaign has no activities, or
- one line per activity, if the campaign has one or more activities
But I can't figure out any way to do this in one report. If I use a root collection of Campaigns and then insert any of the properties from allActivities in the detail of the report, then I get one line per activity, but if the campaign has no activities then nothing will print for the campaign.
I've also tried using joins but this did not help as you cannot do outer joins.
So far the only solution I have found is to do two separate reports, one for campaigns with no activities and another for the campaigns with activities.
Can anyone suggest a better solution?
Thanks
Andrea
I have a problem with the Jade Report Writer, and I wonder if anyone knows of a solution to this.
I have a class of Campaign which has a reference allActivities. This is a collection which may contain 0, 1 or more activities.
I want to produce a report which will print
- one line for the campaign, if the campaign has no activities, or
- one line per activity, if the campaign has one or more activities
But I can't figure out any way to do this in one report. If I use a root collection of Campaigns and then insert any of the properties from allActivities in the detail of the report, then I get one line per activity, but if the campaign has no activities then nothing will print for the campaign.
I've also tried using joins but this did not help as you cannot do outer joins.
So far the only solution I have found is to do two separate reports, one for campaigns with no activities and another for the campaigns with activities.
Can anyone suggest a better solution?
Thanks
Andrea