Solved

How to force page break based on some condition.

Posted on 2002-06-05
3
274 Views
Last Modified: 2008-01-09
I have data like
sno  descrip     amount  page_skip
----------------------------------
1    aaaaaaa      4000    n
2    bbbbbbbb       30    N
3    c              10    N
4    d              40    Y
5    f              50    B
6    dddddu        100    C


I want to give a page break when Page_Skip='Y'
0
Comment
Question by:anilsharma
  • 2
3 Comments
 
LVL 6

Expert Comment

by:M-Ali
ID: 7056053
I assume you are using oracle report builder. This is how you can achieve this:

1)Design your report layout.
2)Just below the "page_skip" column, create a small object (like a line) within the same repeating frame.
3)Set "page break before" property for this object
4)Create format trigger on this object like:
function B_1FormatTrigger return boolean is
begin
  if :page_skip = 'Y' Then
    return (TRUE);
  else
    return false;
  end if;
end;

You can set the color of the object to white to prevent it from being printed.

HTH

Ali
0
 

Author Comment

by:anilsharma
ID: 7115856
Good solution.
0
 
LVL 6

Accepted Solution

by:
M-Ali earned 50 total points
ID: 7118185
Anil, if the solution solves your problem then kindly accept the solution & close the question.

Regards

Ali
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Oracle Distributed Transaction Lock Error ORA-01591 8 66
return value in based on value passed 6 37
why truncate is faster than delete in oracle ? 4 43
plsql job on oracle 18 72
This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to take different types of Oracle backups using RMAN.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question