[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

How to force page break based on some condition.

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
anilsharma
Asked:
anilsharma
  • 2
1 Solution
 
M-AliCommented:
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
 
anilsharmaAuthor Commented:
Good solution.
0
 
M-AliCommented:
Anil, if the solution solves your problem then kindly accept the solution & close the question.

Regards

Ali
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now