Home » Developer & Programmer » Reports & Discoverer » Page Break Qtn...
Page Break Qtn... [message #480923] Thu, 28 October 2010 02:37 Go to next message
Maverick27
Messages: 84
Registered: October 2008
Member
Can someody pls. tell me what i need to do so that the Group shown by the RED arrow spills over to next page ?

The image shows that my report is grouped into 4 Levels.

Do i simple create a Page Break on Last Group ?

Thanks - Mave
Re: Page Break Qtn... [message #480926 is a reply to message #480923] Thu, 28 October 2010 02:57 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I'm not sure what "spills over to next page" means, but I *guess* that you'd like "Floor Lamp" group to be on the second page (both group title and its items). If that's so, set 4th group's Page Protect property to Yes.
Re: Page Break Qtn... [message #480940 is a reply to message #480926] Thu, 28 October 2010 05:46 Go to previous messageGo to next message
Maverick27
Messages: 84
Registered: October 2008
Member
Thanks....sometimes when i do a Page Break on a Group, it does'nt work ? What could be the problem ?
Re: Page Break Qtn... [message #480941 is a reply to message #480940] Thu, 28 October 2010 06:37 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I don't know; probably depends on "sometimes" (i.e. current situation).

However, what you asked for (based on an image) is not really a "Page Break" - it would put every group onto its own page.
Re: Page Break Qtn... [message #481021 is a reply to message #480941] Fri, 29 October 2010 06:07 Go to previous messageGo to next message
Maverick27
Messages: 84
Registered: October 2008
Member
Hi Littlefoot...thanks for taking an interest in my issue...

My report is made of 3 GROUPS...On the 2nd Group, i put a PAGE BREAK (After(, but it DID'NT create the Page Break..
Last pic. of attached image is a snapshot of the Report.
Unfortunately, no page break was created...

Thanks - Mave
Re: Page Break Qtn... [message #481023 is a reply to message #481021] Fri, 29 October 2010 06:38 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Try to set "Maximum records per page" for that frame to 1 (one).
Re: Page Break Qtn... [message #481036 is a reply to message #481023] Fri, 29 October 2010 08:24 Go to previous messageGo to next message
Maverick27
Messages: 84
Registered: October 2008
Member
Thanks - that worked....

For GRP2, I set MAX RECORD to 1. For GROUP3, MAX RECORD IS 4...
So, why is it then showing more than 4 images (records) as per attachment..

MAve
  • Attachment: 0000.jpg
    (Size: 60.41KB, Downloaded 921 times)
Re: Page Break Qtn... [message #481076 is a reply to message #481036] Sat, 30 October 2010 03:31 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Are you sure you set the property for a right (correct, proper) frame?
Re: Page Break Qtn... [message #481078 is a reply to message #481076] Sat, 30 October 2010 03:39 Go to previous messageGo to next message
Maverick27
Messages: 84
Registered: October 2008
Member
I tend to think so b'coz i'm getting 4 rows for ALL other pages...it's only this particular page that is showing more than 4 !

I'll do some trial & error...
Re: Page Break Qtn... [message #481079 is a reply to message #481078] Sat, 30 October 2010 03:45 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I thought that maybe you wanted to set "Maximum records per page" to 1 for a frame that displays "Massive Light Fittings" title, so that "3 light pendant" goes to one page, "4 light pendant" to another one.

4 records par page for a frame that contains images seem to be working OK (as there are 4 images in the above frame, 3 in the lower one).
Re: Page Break Qtn... [message #481138 is a reply to message #481079] Mon, 01 November 2010 01:29 Go to previous messageGo to next message
Maverick27
Messages: 84
Registered: October 2008
Member
Hello again...

Is it possible to write to some kind of trigger code in the report to display 2 records for a specific group & 4 records for the rest...

There is a grp called 'Floor Lamps' in the my report. I would like to show only 2 images...

Mave
  • Attachment: 0000.jpg
    (Size: 32.75KB, Downloaded 805 times)
Re: Page Break Qtn... [message #481188 is a reply to message #481138] Mon, 01 November 2010 11:16 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I don't know how to do that by setting "something" in Reports Builder.

However, you might try to do that in the query itself. Something like this example: first, all records from the EMP table (broke on DEPTNO, ordered by DEPTNO, ENAME). Let's suppose that we want to display only 2 records for DEPTNO = 10, and 4 records for other departments; those records are marked with an asterisk:
SQL> select deptno, ename, job, sal
  2  from emp
  3  order by deptno, ename;

    DEPTNO ENAME      JOB              SAL
---------- ---------- --------- ----------
        10 CLARK      MANAGER         2450 *
           KING       PRESIDENT       5000 *
           MILLER     CLERK           1300
        20 ADAMS      CLERK           1100 *
           FORD       ANALYST         3000 *
           JONES      MANAGER         2975 *
           SCOTT      ANALYST         3000 *
           SMITH      CLERK            800
        30 ALLEN      SALESMAN        1600 *
           BLAKE      MANAGER         2850 *
           JAMES      CLERK            950 *
           MARTIN     SALESMAN        1250 *
           TURNER     SALESMAN        1500
           WARD       SALESMAN        1250

Now, a query (might be prettier, but you'll get the idea):
SQL> select deptno, ename, job, sal
  2  from (select row_number() over (partition by deptno order by deptno, ename) rn,
  3               deptno, ename, job, sal
  4        from emp
  5        order by deptno, ename
  6       )
  7  where rn <= decode(deptno, 10, 2, 4);

    DEPTNO ENAME      JOB              SAL
---------- ---------- --------- ----------
        10 CLARK      MANAGER         2450
           KING       PRESIDENT       5000
        20 ADAMS      CLERK           1100
           FORD       ANALYST         3000
           JONES      MANAGER         2975
           SCOTT      ANALYST         3000
        30 ALLEN      SALESMAN        1600
           BLAKE      MANAGER         2850
           JAMES      CLERK            950
           MARTIN     SALESMAN        1250

Got it?
Re: Page Break Qtn... [message #481233 is a reply to message #481188] Tue, 02 November 2010 02:00 Go to previous messageGo to next message
Maverick27
Messages: 84
Registered: October 2008
Member
Thanks - i'll try it out...

In the Frame property where i have set MAX Rec. to 4, do i leave it to what it is ?

Will the result of the SQL statement supercede the Frame Property ?

MAve
Re: Page Break Qtn... [message #481238 is a reply to message #481233] Tue, 02 November 2010 02:11 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Leave "Maximum records per page" as it was; because, query might return 100 records and report would display them all, unless you restrict it with "maximum records per page" property.
Re: Page Break Qtn... [message #481267 is a reply to message #481238] Tue, 02 November 2010 04:37 Go to previous messageGo to next message
Maverick27
Messages: 84
Registered: October 2008
Member
Thanks Littlefoot....your query does'nt actually meet my needs..

On Report level, i want to display 2 images for a specific Grp & 4 images for rest...

Whereas your query is discarding some records...

So, this can only be achieved with a code in the Report Trigger..

Mave
Re: Page Break Qtn... [message #481271 is a reply to message #481267] Tue, 02 November 2010 04:44 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
So to be clear:
The group contains multiple items, 1 of which is an image.
You want the group to retrieve as many records as match the criteria.
However the image item should be supressed after the first 2 records in the group.
Re: Page Break Qtn... [message #481295 is a reply to message #481271] Tue, 02 November 2010 06:13 Go to previous messageGo to next message
Maverick27
Messages: 84
Registered: October 2008
Member
Currently I have set MAX records of the frame to 4...so i will see 4 images per page. This is what i want...

But for a SPECIFIC group (Floor Lamps), i want to see ONLY 2...

Is then possibe to write a trriger code..

IF GRP = 'Floor Lamps' THEN MAX REC = 2 ELSE
MAX REC = 4
END IF

Re: Page Break Qtn... [message #481297 is a reply to message #481295] Tue, 02 November 2010 06:24 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
Different groups need different frames. So unless your definition of group differs from oracle reports I'm not sure why you think you need a trigger for this. Just hard code that value in that groups frame.
Re: Page Break Qtn... [message #481298 is a reply to message #481295] Tue, 02 November 2010 06:25 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Well, there is SRW.SET_MAXROW built-in but I don't think that you can use it here (at least, that's what I understood while reading Help).

So: if you use a query as I suggested in a message #481188 and set "Maximum records per page" to 4, it *should* work.
Re: Page Break Qtn... [message #481409 is a reply to message #481298] Wed, 03 November 2010 04:45 Go to previous messageGo to next message
Maverick27
Messages: 84
Registered: October 2008
Member
Hi LittleFoot....

I don't think the problem is fully understood yet...

Attachment shows a snapshot of the report. The report is made of 4 Grps (as already explained)...

4th Group distinguishes lights into "Pendants", "Chandeliars", "Floor Lamps", etc...

For "Floor Lamps" i want to show ONLY 2 images per page & for rest, i want to show 4 images like it is for Pendants..

Mave
  • Attachment: dECO.jpg
    (Size: 32.58KB, Downloaded 914 times)
Re: Page Break Qtn... [message #481410 is a reply to message #481409] Wed, 03 November 2010 04:54 Go to previous message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
Unless you split floor lamps out into a seperate query - and thus a seperate group (in the oracle reports sense of group) you will not be able to do this. There is no way as far as we can tell of changing the max records property programatically. So if you really want this you're going to have to have floor lamps in a seperate frame - which means seperate group and thus seperate query.
Previous Topic: file download - security warning unknown file type rwservlet
Next Topic: Report Run Problem Oracle10g
Goto Forum:
  


Current Time: Wed Apr 24 05:24:16 CDT 2024