Hi all -
Oracle 8i
CR 9
I am trying to insert two subreports into a main report where the main report is pretty much a 'container' only.
Example:
Subreport #1 "subrpt 24hours out"
Here is the SQL statement for this subreport - designed to pull records where the scheduled procedure date is the 'currentdate + 1'.
This returns the desired result when run separately.
Subreport #2: "subrpt 48hours out"
Here is the SQL statement for this subreport - designed to pull records where the scheduled procedure date is between 'currentdate + 2' and 'currentdate + 3'.
This also runs correctly if sun as a separate report.
The problem arises when I try and insert them in a main report. I am sure that there is a simple step that I am missing or just placing them in the wrong report area.
I am linking the main and sub reports on 'V_SCH_RECORD.PROCEDURE_DATE_DT'.
So far, I've tried placing them in the detail section (details a, and details b). No records come through in the subreport.
Tried creating 'fake' groups (ie: group1 would be based off of a formula:
and group2 would be based off of
Once this has been done, I tried inserting the subreports into the group headers - both would then return 0 records even though it would show '"lots" of read records.
Once those attempts didn't work correctly, I tried changing the formulas that I was using for the groups to the following:
group 1 and subrpt 24hours out
group 2 and subrpt 48hours out
Same issue as before - I see the records being read but no records being diplayed
Any help is appreciated. Thank you.
-- Andy
Oracle 8i
CR 9
I am trying to insert two subreports into a main report where the main report is pretty much a 'container' only.
Example:
Subreport #1 "subrpt 24hours out"
Here is the SQL statement for this subreport - designed to pull records where the scheduled procedure date is the 'currentdate + 1'.
Code:
SELECT "V_SCH_RECORD"."CANCELLED_TF", "V_SCH_RECORD"."SERVICE", "V_SCH_RECORD"."ROOM_NAME", "V_SCH_RECORD"."PROCEDURE_DATE_DT", "V_SCH_RECORD"."CASE_CONFIRMATION_NUM", "V_SCH_RECORD"."SURGEON", "V_SCH_RECORD"."MSP_SECOND_SURGEON", "V_SCH_RECORD"."MSP_THIRD_SURGEON", "V_SCH_RECORD"."MSP_SECOND_SURGEON_SERVICE", "V_SCH_RECORD"."MSP_THIRD_SURGEON_SERVICE", "V_SCH_RECORD"."MSP_FOURTH_SURGEON", "V_SCH_RECORD"."MSP_FOURTH_SURGEON_SERVICE", "V_SCH_RECORD"."MSP_FIFTH_SURGEON", "V_SCH_RECORD"."MSP_FIFTH_SURGEON_SERVICE", "V_SCH_RECORD"."MSP_SIXTH_SURGEON", "V_SCH_RECORD"."MSP_SIXTH_SURGEON_SERVICE"
FROM "SISI"."V_SCH_RECORD" "V_SCH_RECORD"
WHERE "V_SCH_RECORD"."CANCELLED_TF"='0' AND ("V_SCH_RECORD"."PROCEDURE_DATE_DT">=TO_DATE ('08-02-2005 00:00:00', 'DD-MM-YYYY HH24:MI:SS') AND "V_SCH_RECORD"."PROCEDURE_DATE_DT"<TO_DATE ('09-02-2005 00:00:00', 'DD-MM-YYYY HH24:MI:SS')) AND "V_SCH_RECORD"."ROOM_NAME" LIKE 'ACB%'
Subreport #2: "subrpt 48hours out"
Here is the SQL statement for this subreport - designed to pull records where the scheduled procedure date is between 'currentdate + 2' and 'currentdate + 3'.
Code:
SELECT "V_SCH_RECORD"."CANCELLED_TF", "V_SCH_RECORD"."SERVICE", "V_SCH_RECORD"."ROOM_NAME", "V_SCH_RECORD"."PROCEDURE_DATE_DT", "V_SCH_RECORD"."CASE_CONFIRMATION_NUM", "V_SCH_RECORD"."SURGEON", "V_SCH_RECORD"."MSP_SECOND_SURGEON", "V_SCH_RECORD"."MSP_THIRD_SURGEON", "V_SCH_RECORD"."MSP_SECOND_SURGEON_SERVICE", "V_SCH_RECORD"."MSP_THIRD_SURGEON_SERVICE", "V_SCH_RECORD"."MSP_FOURTH_SURGEON", "V_SCH_RECORD"."MSP_FOURTH_SURGEON_SERVICE", "V_SCH_RECORD"."MSP_FIFTH_SURGEON", "V_SCH_RECORD"."MSP_FIFTH_SURGEON_SERVICE", "V_SCH_RECORD"."MSP_SIXTH_SURGEON", "V_SCH_RECORD"."MSP_SIXTH_SURGEON_SERVICE"
FROM "SISI"."V_SCH_RECORD" "V_SCH_RECORD"
WHERE "V_SCH_RECORD"."CANCELLED_TF"='0' AND ("V_SCH_RECORD"."PROCEDURE_DATE_DT">=TO_DATE ('09-02-2005 00:00:00', 'DD-MM-YYYY HH24:MI:SS') AND "V_SCH_RECORD"."PROCEDURE_DATE_DT"<TO_DATE ('11-02-2005 00:00:00', 'DD-MM-YYYY HH24:MI:SS')) AND "V_SCH_RECORD"."ROOM_NAME" LIKE 'ACB%'
The problem arises when I try and insert them in a main report. I am sure that there is a simple step that I am missing or just placing them in the wrong report area.
I am linking the main and sub reports on 'V_SCH_RECORD.PROCEDURE_DATE_DT'.
So far, I've tried placing them in the detail section (details a, and details b). No records come through in the subreport.
Tried creating 'fake' groups (ie: group1 would be based off of a formula:
Code:
whilereadingrecords;
1
Code:
whilereadingrecords;
2
Once this has been done, I tried inserting the subreports into the group headers - both would then return 0 records even though it would show '"lots" of read records.
Once those attempts didn't work correctly, I tried changing the formulas that I was using for the groups to the following:
group 1 and subrpt 24hours out
Code:
{V_SCH_RECORD.PROCEDURE_DATE_DT} = currentdate + 1
Code:
{V_SCH_RECORD.PROCEDURE_DATE_DT} in currentdate + 2 to currentdate + 3
Same issue as before - I see the records being read but no records being diplayed
Any help is appreciated. Thank you.
-- Andy