Solved

How to force page break based on some condition.

Posted on 2002-06-05
3
275 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

738 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