Solved

Deleting the Runtime Parameter in Report Builder 6i

Posted on 2004-09-21
4
806 Views
Last Modified: 2011-10-03
Hi Folks,

    I have designed a report in Report Builder 6i, which takes runtime parameter from the user, say an Item Code from the user and then prints the report for that particluar Item. I have about 2000 different items and for that I have to run the report 2000 times and each time the user will input the item code value and then the report will print.
Now I want to delete the runtime parameter from the report so that we will run the report only once and it will print the reprots for all the items. When I delete the runtime parameter and run the report, it does print all t he items but the whole formatting of the report is totally disturbed. Is there any property of the report so that each item will be printed on separate page and the formatting will remain intact?

TIA



Hassan
0
Comment
Question by:hayub
4 Comments
 
LVL 6

Expert Comment

by:Jankovsky
ID: 12111070
You should add a repeating frame into report. The frame should be associated with particular query, returning te former parameters. Current queries should depent on the new query (the same way as they depended on the parameter.

Bob
0
 
LVL 35

Assisted Solution

by:Mark Geerlings
Mark Geerlings earned 75 total points
ID: 12111652
I assume that you already have a repeating frame in the report for the Item data.  If you don't, you need to add one.  Then modify the report query only slightly to use "like" instead of "=" and instruct the users to enter the wildcard character "%" when they want to see all items.  Then the same report could be used for one or all items (or even for a group of items with similar item_code values if the operator enters an item_code like: "AB%" for example).  The query now probably look something like this:
select [columns...]
from item_table
where item_code = :p_item;

Change it to this (make sure you add the "order by" clause!):
select [columns...]
from item_table
where item_code like :p_item
order by item_code;
0
 
LVL 47

Expert Comment

by:schwertner
ID: 12112029
You have to use Lexical parameters in Reports.
Lexical parameters can made a WHERE clause in the select appearing
or disappearing.
The only problem is that it is not a good idea to put the whole where clause as parameter.
You should use two parameters:
par 1 : values Y and N
par 2 : the item code

In the BEFORE ... trigger analyze the values and construct the third hidden parameter that is the lexical parameter.

The bettre way is to construct a separate report for this new case.
0
 
LVL 8

Accepted Solution

by:
sapnam earned 75 total points
ID: 12114076
As said earlier, you have to have a repeating frame.  To ensure that each item prints on a separate page, you have to set the Repeating Frame property Maximum Records per page to 1
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Pfile and SPfile - Oracle 2 57
Oracle Next Available Number 2 32
How to free up undo space? 3 29
use lov values 2 33
Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

896 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

12 Experts available now in Live!

Get 1:1 Help Now