Group above report problem
hi,
To get clear idea i am using emp table as an example.
I am creating a report using style GroupAbove and save it in .jsp file.
I took empno as group .
My report was displayed in this way:
page 1:
empno 7369
ename job sal comm deptno
simth clerk 800 0 20
empno 7499
ename job sal comm deptno
allen sales 1600 30 30
ramu manager 4000 0 20
and so on...
page2 :
empno 7499
ename job sal comm deptno
raju clerk 500 0 10
empno 7599
ename job sal comm deptno
ramu worker 300 0 40
..... so on
But My result should be in this way :
page 1:
empno 7369
ename job sal comm deptno
simth clerk 800 0 20
empno 7499(problem :Here i dont want to display heading of ename.... and so on)
allen sales 1600 30 30
ramu manager 4000 0 20
page 2:(if next page starts then should start with heading of ename... and so on)
ename job sal comm deptno
raju clerk 500 0 10
empno 7599
ramu worker 300 0 40
..... so on
If any one know this probelm help me soon
it's very urgent
with regard's
vijay
You may have been better to use deptno as the group column in your example, since I'm not sure that grouping on empno makes sense (and hence makes the example difficult to picture).
That said, it seems that the problem is that you only want the details headings to be displayed once per page (for a group above report). This isn't going to be too easy, and will require some coding, but bear with me.
The first thing to do is to create a PL/SQL package with a single boolean variable in it. This will be used a flag to determine whether the headers should be displayed.
In the before report trigger, set this variable to TRUE.
In the format trigger for the frame containing all the boilerplate labels, check to see if the variable is TRUE. If it is then set it to FALSE, and return TRUE.
If it's not then return FALSE (to suppress the display).
In the between pages trigger set the variable to TRUE.
Hope this helps (and that I've understood the problem),
Danny
Similar Messages
-
Group Above Report problem...not able to display absent rows in date range
In my report query, I have numerous select statements that I must union together and group by a date. The ultimate goal is to get a count for all records in coordination with that date. Then in the report, I group all the data with the same date to ultimately put all counts on a page that coordinate with a single date.
Thing is...if there are no records associated with that date, the 'group by' clause makes the return data set not include those lines of output. I need these lines of output! Any suggestions??
Below is an example...
Select 'Program1', 'SubProgram1', 'Label 1', to_char(receipt_date, 'MM/DD/RRRR'), count(*)
from submissions
where receipt_date between '01-JUN-05' and '10-JUN-05'
and substr(submission_index,8,1) = '3'
and substr(submission_index,9,1) = '1'
group by substr(submission_index,8,1), substr(submission_index,9,1), to_char(receipt_date, 'MM/DD/RRRR')
union
Select 'Program2', 'SubProgram2', 'Label 2',
to_char(receipt_date, 'MM/DD/RRRR'), count(*)
from submissions
where receipt_date between '01-JUN-05' and '10-JUN-05'
and substr(submission_index,8,1) = '4' group by substr(submission_index,8,1), to_char(receipt_date, 'MM/DD/RRRR')
OUTPUT:
Program1 SubProgram1 Label 1 06/01/2005 4
Program1 SubProgram1 Label 1 06/02/2005 2
Program1 SubProgram1 Label 1 06/03/2005 6
Program1 SubProgram1 Label 1 06/04/2005 23
Program1 SubProgram1 Label 1 06/06/2005 71
Program1 SubProgram1 Label 1 06/07/2005 245
Program1 SubProgram1 Label 1 06/08/2005 76
Program1 SubProgram1 Label 1 06/10/2005 45
Program2 SubProgram2 Label 2 06/01/2005 66
Program2 SubProgram2 Label 2 06/02/2005 345
Program2 SubProgram2 Label 2 06/03/2005 89
Program2 SubProgram2 Label 2 06/04/2005 12
Program2 SubProgram2 Label 2 06/05/2005 3
Program2 SubProgram2 Label 2 06/06/2005 27
Program2 SubProgram2 Label 2 06/09/2005 98
Program2 SubProgram2 Label 2 06/10/2005 456
I need the missing lines to show up for Program 1 on 6/05 and 6/09
and Program 2 on 6/07 and 6/08create table your_table (
program varchar2(20),
subprogram varchar2(20),
label varchar2(20),
day date,
num number
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('01-JUN-05'), 4);
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('02-JUN-05'), 2);
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('03-JUN-05'), 6);
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('04-JUN-05'), 23);
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('06-JUN-05'), 71);
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('07-JUN-05'), 245);
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('08-JUN-05'), 76);
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('10-JUN-05'), 45);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('01-JUN-05'), 66);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('02-JUN-05'), 345);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('03-JUN-05'), 89);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('04-JUN-05'), 12);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('05-JUN-05'), 3);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('06-JUN-05'), 27);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('09-JUN-05'), 98);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('10-JUN-05'), 456);
SELECT yt.program
, yt.subprogram
, yt.label
, nvl(yt.num,0) NUM
, days.date_value
FROM ( select (to_date('11-JUN-05','DD-MON-YY') - day) date_value
from ( select rownum day
from dual
connect by rownum < 11
) days
, your_table yt
where yt.day(+) = days.date_value
order by yt.program, days.date_value
PROGRAM SUBPROGRAM LABEL NUM DATE_VALUE
Program1 SubProgram1 Label 1 4 6/1/2005
Program1 SubProgram1 Label 1 2 6/2/2005
Program1 SubProgram1 Label 1 6 6/3/2005
Program1 SubProgram1 Label 1 23 6/4/2005
Program1 SubProgram1 Label 1 71 6/6/2005
Program1 SubProgram1 Label 1 245 6/7/2005
Program1 SubProgram1 Label 1 76 6/8/2005
Program1 SubProgram1 Label 1 45 6/10/2005
Program2 SubProgram2 Label 2 66 6/1/2005
Program2 SubProgram2 Label 2 345 6/2/2005
Program2 SubProgram2 Label 2 89 6/3/2005
Program2 SubProgram2 Label 2 12 6/4/2005
Program2 SubProgram2 Label 2 3 6/5/2005
Program2 SubProgram2 Label 2 27 6/6/2005
Program2 SubProgram2 Label 2 98 6/9/2005
Program2 SubProgram2 Label 2 456 6/10/2005The four null rows will not show up because the date is used at least once between program 1 or program 2. Will there only ever be two programs to chose from? Any one else got any ideas around this? -
Problem facing for Exporting a Group above report to excel
Hello all any one can tell me How to set columns and rows of a Group above to report to export to excel.
I have a group above report but when i export it to excel the Columns and rows are out of order.Tell me what type of sequence should apply on columns and rows?????????Adeel Aslam wrote:
No Dear I mean I have called the Procedure of Exporting report to Excel On Each Field On Format Trigger.But whan i run it and Export it Then columns and Rows are out of Order on Excel sheet.I only want to know standard sequence that i should apply in smart trigger that the fields are shown in excel same like on report.
RegardsI'm guessing you're not referring to SQL and PL/SQL then.
Oracle doesn't have a built in procedure for exporting to Excel, so how the data is being ordered is going to depend on the code in that procedure and whoever wrote it. If you need more assistance you need to give us more details of what it's doing. -
Hi,
I am facing problem in Group Above report this can be said in the schema of Scott as follows.
I have developed group above report on Dept,Emp tables. It is showing all the data but the deptno =40 is not showing. The query used is
select * from emp,dept
where dept.deptno=emp.deptno(+)
There I have also used formula column to calculate total salary for each department in front of each department. I case of dept no =40 it is also showing blankHi Riaz
The 'emp' table does not have employees in dept 40.
Regards
Sripathy -
Break Column in Group Above Report - Causing Error in Data Groupings
Since I'm required to designate at least one Break Column in my Group Above report, I created a dummy column in my SELECT statement. I did this so that I could designate the required minimum of at least one break column, but I designated one that won't have any impact on how the report is ordered, because it will be the same value (NULL) for every record. So, my SELECT statement starts out looking something like this:
SELECT
NULL break_column,
column_1 column1_name,
column_2 column2_name,
column_3 column3_name,
column_4 column4_name,
column_5 column5_name
I needed for the break column to have no impact on the ordering of the report because I need for the ORDER BY clause to completely control how the report is sorted, w/o any interference by a hard-coded break column. I need this because my intention is to make the ORDER BY clause dynamic, and a hard-coded break column with actual data would supercede the ORDER BY clause, thereby making it static.
Everything is working correctly with regard to how the report is sorting the records designated as group columns; however, the detail columns are getting all messed up as far as what main record they're grouped under.
By this I mean that when I designate only one break column, some details may display under the wrong group, where they're not supposed to. For example, each page consists of demographic info. about a specific record on a table, and the details listed under it should be the individual comments that have been made on that record. The issue I'm seeing is that for some records, it's showing comments from not only the record for that group, but it continues to list out comments made for other requests as well, when those comments should be displayed under their own respective records.
Why is this happening when I designate only one break column, and how can I keep it from doing this?Did you get a solution for this?
I have the same problem.
Any help would be appreciated.
Thanks,
Madhu -
Is it possible to create group above report between to different data model
Hi,
I am having one problem.. I am working on Bi publisher 10...
I have to create 2 different data models.. which i have done successfully.... its showing xml data perfectly.. but my problem is i want my 2nd data model to be dependent of 1st model...
when i am designing my template ... i am not able to create a group by report..
i want my report like this ...
------------------------------------------------------------ (fetching data from first data model)
abc xyz pqrs
--------------------------------now their it must show the data from second data model... dependent on first model...
simply i want to know is it possible to create group above report between to different data models..Thanks for your response..
I already tried this.. But its not working ..
i want parent information from data model 1
then all detail information related to parent template ...from data model 2..
but its not working.. its giving me all parent informations first then all details informations.. -
Generate text file from a group above report
i have problem in generating report in developer 6 report builder my report is master -detail(group above report)
when i generate text file or csv file then my report is not in group above,master records are repeated along with every detail record.
is there any solution that i generate group above report in text or csv file
instead of pdf,rtf,html
please mail me
[email protected]Can you try adding this in your URL delimited_hdr=NO
I am not sure it works.
Just give a try -
Supress repeated labels in group Above reports o matrix group above reports
Hi,
I have a problem, because I´m brand new in reports.
I've defined same reports.
When I defined a Group Above Report or a Matrix with Group Above Report the labels appear repeated in the same page:
Year 2006
Level 1 Range 1-3 months 3-6 months 6-12 months
Age
< 16 1
16-17 1 3
18-24 12 6 2
25 4 5 2Total Level 1: 17 14 5
Level 2 Range 1-3 months 3-6 months 6-12 months
Age
< 16 1
16-17 2 1
18-24 8 12 2
25 5 4 3Total Level 1: 15 17 6
Is it possible not to repeat the labels "Range 1-3 months 3-6 months 6-12 months",? I want them to appear once per page.
How can I do it?
Please may anyone help me?
thanks
BeatrizWhy should that be a bug? You have a custom requirement and have to find a way to fulfill it. But, what is your actual sorting order? Do you have only this three departments? If so, you could add an addtional column in your query like
DECODE(DEPT, 20, 1, 10, 2, 30, 3, 4) SORTINGput that column in the same group as dept and sort after that new column. -
How to create a Group Above report using APEX
I want to create a Group above report with more that one group using APEX. Is it possible to generate such a report using APEX. If so kindly let me know how to go about creating a Group above report with more than one group.
Hello Srini,
Thank you very much for the reply but I'm not into OBIEE... I want the required query to be processed and the output to be shown in xml layout to load into RTF document. The rest I can manage.. but please let me know how to get the .xml output with out using the report builder or the apps environment(concurrent prg submission)..
Please let me know if any... urgent
Thanks in advance
Krishna -
Display Total in Group Above Report
Hello,
I have a group above report with month, product_id, product_name as group above fields I have product_entry_date, description, total_qty, actual_qty etc as display fields in my report.
I would like to have a total and grand total for total_qty and actual_qty for product_id and product_name. Issue I am having is when I add a summary column for total_ qty and actual_qty, total is getting displayed for each month.
How can I display total and grand for total_qty and actual_qty?
Any help is highly appreciable.
Thanksponic wrote:
Hello,
I have a group above report with month, product_id, product_name as group above fields I have product_entry_date, description, total_qty, actual_qty etc as display fields in my report.
I would like to have a total and grand total for total_qty and actual_qty for product_id and product_name. Issue I am having is when I add a summary column for total_ qty and actual_qty, total is getting displayed for each month.
How can I display total and grand for total_qty and actual_qty?
Any help is highly appreciable.
ThanksIf you want to display total qty for each month and you already done it. as you says..
total is getting displayed for each month.If not ,
Take a summary column at month group >> at properties .. Summary Function : Sum , Reset at month group.
and for grand total
take a summary column outside the query. >> at properties .. Summary Function : Sum , Reset at report.
Hope it works.
hamid
If someone's response is helpful or correct, please mark it accordingly. -
How to design group above report manualy
I want to design group above report manually. How can i define main repeating frame and then internal repeating frame like report builder.
Hi,
one possibel way is:
//-- loop through all master values
<?for-each:DEPT_ROW?>
//-- store the master key in a variable
<?xdoxslt:set_variable($_XDOCTX,'v_DEPTNO',DEPTNO)?>
//-- Output of master data
<?DEPTNO?>
<?DNAME?>
//-- Loop through second dataset looking vor all data suitable to the current master key
<?for-each://EMP_ROW[xdoxslt:get_variable($_XDOCTX, 'v_DEPTNO')=DEPTNO]?>
<?ENAME?>
<?JOB?>
<?end for-each?>
<?end for-each?>
Hope that helps
Rainer -
Multi-query group above report creates more pages
Hi,
I have a multi-query group above report (paper only), the parent group creates 5 rows(subframes) all onto the same page, but then creates 4 more IDENTICAL pages!!?
at the end I have 5 repating frames and 5 pages.
If I set Maximum Records per Page to 1, I have 5 pages (IDENTICAL) with the first frame only...
any idea?
cheers
Matteohello,
you will have to create a counter, that tells you the numbers of students (summary-column, function : count, reset on : course) and create a format-trigger on the heading that hides it when the number of students is 0.
regards,
the oracle reports team --pw -
Multi level Group Above Report
I have a multi level Group Above report like this.
School name : xxxx
Course1
Student1
Student2
Course2
Student1
School name : yyyy
etc...
No students are enrolled in some of the courses. I used the Outer Query in SQL to include those courses. Everything looks okay, except the header for the students are still appearing. how do I supress the student heading if no drecords are present?
Can somebody help me.
Thank you
David Smithhello,
you will have to create a counter, that tells you the numbers of students (summary-column, function : count, reset on : course) and create a format-trigger on the heading that hides it when the number of students is 0.
regards,
the oracle reports team --pw -
Group above report - help please
Good Morning,
I'm trying to create a group above report that resembles the following:
LETTER TYPE: 00001
BATCH TOTAL NOREPLY
1234 3 1
2345 2 0
TOTAL VOL. FOR LETTER 00001 5
I've tried using:
select ltrtype, batch, count(reply)
from ltr
where reply = 'N'
group by ltrtype, batch
which does give me the correct figures under the NOREPLY Heading, but I can't get the correct figures for the TOTAL heading (NOTE: The figures in the TOTAL column should be a total of both the reply = 'Y' and reply = 'N' for the ltrtype and batch - the figures in the NOREPLY column should be a total of only the reply = 'N' for the ltrtype and batch.) I hope this explanation is clear
I've also tried eliminating the where clause, but then I get the correct figures under the TOTAL heading, but I can't get the correct figures for the NOREPLY heading.
I've also tried using two queries and a data link, but I couldn't get that to work either.
Any help would be greatly appreciated.
Thanks.Go to report wizard and check the groups and fields tabs. Otherwise map the repeating frames accordingly.
-
Is this Oracle Reports bug – "break order property" in "group above" report
Is this Oracle Reports bug – “break order property” in "group above" report
Could anybody confirm that in "group above" report, we could only order the brake column's values with ""none" or "ascending" or "descending" provided by "break order property"?
In the following example, “Dept” is brake column. Oracle Reports allows us to order values in “Dept” with “descending” provided by “break order property”:
Dept 30
job ename salary
xxx xxx xxx
xxx xxx xxx
Dept 20
job ename salary
xxx xxx xxx
xxx xxx xxx
Dept 10
job ename salary
xxx xxx xxx
xxx xxx xxx
or “ascending” provided by “break order property”:
Dept 10
job ename salary
xxx xxx xxx
xxx xxx xxx
Dept 20
job ename salary
xxx xxx xxx
xxx xxx xxx
Dept 30
job ename salary
xxx xxx xxx
xxx xxx xxx
I need to do:
Dept 20
job ename salary
xxx xxx xxx
xxx xxx xxx
Dept 10
job ename salary
xxx xxx xxx
xxx xxx xxx
Dept 30
job ename salary
xxx xxx xxx
xxx xxx xxx
Could I do this? Could anybody confirm that we could never ever do this, or If yes, how?
Millions of thanks for advice.
M.Z.
Edited by: jielan on Sep 18, 2010 8:23 AMWhy should that be a bug? You have a custom requirement and have to find a way to fulfill it. But, what is your actual sorting order? Do you have only this three departments? If so, you could add an addtional column in your query like
DECODE(DEPT, 20, 1, 10, 2, 30, 3, 4) SORTINGput that column in the same group as dept and sort after that new column.
Maybe you are looking for
-
Update to SL 10.6.1
With Leopard I was working OK. I have just updated to SL 10.6.0. When I tried to update to SL 10.6.1 it did nothing, even with iTunes. In the installation window it stops int 5th item "Kind of Installation". Someone could help? Thanks.
-
My Browser cannot load web pages. I get The URL is not valid and cannot be loaded"
I can no longer use Firefox. EVERY PAGE I attempt to load produces the following message alert: "The URL is not valid and cannot be loaded" I have already cleared everything in my browser, rebooted my computer and absolutely nothing works. This just
-
I have Iphone4 brought from at&t USA(carrier locked) and i am in india now, i contacted at&t and requested for an unlock for me to use with indian carriers. I got an email confirming the unlock has been completed from at&t and asked me to connect the
-
Oracle9i Host and Text_IO Command Issues
We are currently attempting to migrate from Forms6i to Oracle9i Forms. I understand that the current Host and Text_IO commands execute on the application server tier and NOT on the client. To counter the Host command issue the migration documentation
-
The roundcube login displays when I open T.bird How do I open an account?
When I open TB the only option is to create an email account. If I select this option a Roundcube log in screen appears. Do I need a Roundcube account and if so how do I get it Thanks, Julian