Solved

How to force page break based on some condition.

Posted on 2002-06-05
3
270 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
ORACLE SQL DEVELOPER Query ? 5 59
Oracle Pivot 2 34
Pl/SQL Query 31 61
VB.Net - CSV to Oracle table 4 29
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now