organickarma
Programmer
Hi,
I am using CR XI with an Oracle 9i backend. I am kinda new to CR so please be patient and bear with my long winding rambling explaination
This is the outline of my report.
It consists of 2 subreports A and B referencing tables TabA and TabB respectively.
The two reports are linked to the main report which basically just holds some text objects and passes 3 parameters to the subreports.
The record selection on the subreports is based on these 3 parameters.
The subreports are calculating some summaries.
The fields in the 2 tables that I use in the subreports look like this
TabA TabB
ID | Date1 | Date2 | FieldA | ID| Date1 | Date2 | FieldB |
Each subreport has 2 groups Group1 is on Date 1 and Group 2 is on Date 2
I am summarizing FieldA and FieldB at end of each Group2 for every value of Group1
and then I am picking out the group for which Date2 = Maximum(Date2,Date1)
This works fine when I select discrete values for the ID from a parameter.
If I remove the parameter for ID then it should cycle through all values but the summaries are all off and messed up
I tried creating a 3rd group on ID but no avail cos the summary seems to be calculated for all values of IDs rather than for each discrete ID groupwise. Also the number of distinct IDs in TabA and TabB are different so the grouping goes out of synch somehow.
I figured best way would be to somehow pass the IDs from an oracle view one at a time to the report and subreports and have it display the subreports for each ID on a different page.
I might be wrong with this approach and there might be an obvious answer far more simple staring me in the face but I am not able to see it.
Please help me here
Thanks
I am using CR XI with an Oracle 9i backend. I am kinda new to CR so please be patient and bear with my long winding rambling explaination
This is the outline of my report.
It consists of 2 subreports A and B referencing tables TabA and TabB respectively.
The two reports are linked to the main report which basically just holds some text objects and passes 3 parameters to the subreports.
The record selection on the subreports is based on these 3 parameters.
The subreports are calculating some summaries.
The fields in the 2 tables that I use in the subreports look like this
TabA TabB
ID | Date1 | Date2 | FieldA | ID| Date1 | Date2 | FieldB |
Each subreport has 2 groups Group1 is on Date 1 and Group 2 is on Date 2
I am summarizing FieldA and FieldB at end of each Group2 for every value of Group1
and then I am picking out the group for which Date2 = Maximum(Date2,Date1)
This works fine when I select discrete values for the ID from a parameter.
If I remove the parameter for ID then it should cycle through all values but the summaries are all off and messed up
I tried creating a 3rd group on ID but no avail cos the summary seems to be calculated for all values of IDs rather than for each discrete ID groupwise. Also the number of distinct IDs in TabA and TabB are different so the grouping goes out of synch somehow.
I figured best way would be to somehow pass the IDs from an oracle view one at a time to the report and subreports and have it display the subreports for each ID on a different page.
I might be wrong with this approach and there might be an obvious answer far more simple staring me in the face but I am not able to see it.
Please help me here
Thanks