Solved

Set reports start page dynamically

Posted on 2011-02-22
11
526 Views
Last Modified: 2012-05-11
I am trying to set the starting page for an oracle report so it starts at say page 3 of x.

However this needs to be changes at run time depending on number of cover sheets to be added.  How do I do this ?

I can do this within reports builder with Page numbering and start at.

However I need to do this by setting a place holder value, physical page + no to start out.
and then perhaps using mu place holder in the report as the page number.
0
Comment
Question by:geoffbates
  • 6
  • 5
11 Comments
 

Author Comment

by:geoffbates
ID: 34958654
.
0
 
LVL 48

Expert Comment

by:schwertner
ID: 34959547
You need to send the start page as parameter to the report or to add this entry in the parameter section.

There is BEFORE_REPORT trigger where you can using PL/SQL   do needed changes dynamically.

Possibly you have to change the item property of your placeholder to the needed number of cover pages.
0
 

Author Comment

by:geoffbates
ID: 34959777

I am happy with setting a user parameter and can pass the "first" page number from my form OK.

But how do I change the  start page number dynamically using using PL/SQL in the BEFORE_REPORT trigger  ?
Thanks
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 48

Accepted Solution

by:
schwertner earned 500 total points
ID: 34960616
Hello,

You wrote:     I can do this within reports builder with Page numbering and start at.

If your method is based on counter, placeholder, field, etc. in Reports there is a trigger that can change almost every parameter in the Reports objects.
I will reccomend to to this way.

Another idea is to use a loop that generates the needed number of empty pages (dummy field in the page, containing spaces).

Third idea is to have a flexible field and to fill it with spaces. The idea here is to calculate how many lines (or spaces) you need for every page.
0
 
LVL 48

Expert Comment

by:schwertner
ID: 34960621
Also search in My Oracle Support. Possibly they have published the solution there.
0
 

Author Comment

by:geoffbates
ID: 34960711
you mentioned "Reports there is a trigger that can change almost every parameter in the Reports objects"

I can not find this. How do I change the report starting page, so if for example I start at page 2 and I have 3 pages I would have:

page 2 of 4
page 3 of 4
page 4 of 4

In the report layout I can go to the field, set source as "&physical page number"  then under page numbering set "start at" at 2 and oracle reports would report correctly.

I need to set via before report trigger  the start page = 2

How do I do this.?


0
 
LVL 48

Expert Comment

by:schwertner
ID: 34961356
In the report layout I can go to the field ---->  try to find a trigger that can change the proprety of this field.
There were such triggers in Reports.
0
 

Author Comment

by:geoffbates
ID: 34969989
Sorry can't find any such triggers.

Any one help. I would have thought setting the start page would not be so difficult
0
 
LVL 48

Expert Comment

by:schwertner
ID: 34971067
Have you seen this:

http://www.orafaq.com/wiki/Reports_FAQ

possibly you will find something.
0
 

Author Comment

by:geoffbates
ID: 34971195
Yes read that FAQ, but does not answer the question of how to set the report starting page so the report shows correctly page x of y
0
 
LVL 48

Expert Comment

by:schwertner
ID: 34977578
Read this http://www.allinterview.com/showanswers/28716.html

Pay attention to  Between Pages trigger.

Using this trigger and an parameter you can control the flow I hope.

I tried to figure out the solution in many sources, but this is not a common problem and is not revealed in these sources.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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
SQL query for highest sequence 4 64
oracle collections 2 29
date show only hh:mm 2 40
oracle query 3 26
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many‚Ķ
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

730 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