Dependent parameters in oracle report builder
1)in user parameter property we have list of values.can we write select query for binding? for example:: select empno from emp where deptno=:deptnum :deptnum is first parameter it displays distinct dept nos. if i do like this it is giving error:: bind variables are not allowed in the select statement
2)HI in report builder am creating paramters.for that i have taken emp table from scott user . in deptnum am displaying distinct deptno.if i select dept 10 ,empnum drop down should display empno's of deptno 10. .if i select dept 20 ,empnum drop down should display empno's of deptno 20.for this wat i have to do.
3)in reports 1og.if we enter a query in list of values then parameter form displays a dropdown.in that if any ething is selected then that will display in the report.supp if i am not selected any value then it should display all the values.how it is possible?can any one help me........
4)in user parameter property we have list of values.can we write select query for binding? for example:: select empno from emp where deptno=:deptnum :deptnum is first parameter it displays distinct dept nos. if i do like this it is giving error:: bind variables are not allowed in the select statement
5)how to use buttons,check boxes in paper layout,paper design and paper parameter form in oracle report developer 10g 0 5
HI in report builder am creating paramters.for that i have taken emp table from scott user . in deptnum am displaying distinct deptno.if i select dept 10 ,empnum drop down should display empno's of deptno 10. .if i select dept 20 ,empnum drop down should display empno's of deptno 20.for this wat i have to do.
What I had to do is create a query using query builder. This works fine; it's when trying to add the column to an existing query is where the data inconstancy error occurs. One thing you have to keep in mind is it will only work using the query builder in conjunction with the report wizard; I am not sure why. To incorporate the comments into an existing frame you will have to cut the frame created by the wizards and copy it into the existing frame. Otherwise the column name will not show in the source list of the property Inspector.
Good Luck
Similar Messages
-
Using CLOBs in oracle Report Builder
I want to select all the data in a CLOB column using SQL Navigator by just doing
select entry_note
from chartentries;
just as you say in your example by it just gives me back a result of (ORACLOB).
If I do
select to_char(entry_note)
from chartentries;
I get this error.
If I do
select dbms_lob.substr(entry_note,4000,1)
from chartentries
I get this (there’s more up to 32000 characters in a clob) and these weird squares which I think are CR (carriage returns) or LF (line feeds). I don’t want to see those characters and I would like to retrieve the entire CLOB in one swoop without doing data manipulations of substringing.
Using the same data in Oracle Report Builder, I want to select all the data in a CLOB column into a field in a Paper report layout but I keep getting errors, ora-6502, and I've found out that I am restricted to 4000 characters and in Report 9i it looks like the largest field you can have is 4000 characters. My CLOB information can be up to 32000 characters long or longer and I do not want to substring out 4000 characters at a time into separate fields. In Crystal reports there is no problem just selecting the clob in a simple query and it is there in one shot. I would have thought by now that Oracle would have changed its development tools to be able to handle Clobs simply without any manipulation. Does anyone know how to do this in Report builder? I just have a simple query:
select entry_datetime,
to_char(replace((entry_note),chr(13))) as entry_note
from chartentries
where patient_id = 49741
Another thing I want to do, is call this Oracle report from a PL/SQL block passing several parameters to the report and also call a Crystal report from a PL/SQL block passing several parameters to the report. Does anyone know what the commands are?What I had to do is create a query using query builder. This works fine; it's when trying to add the column to an existing query is where the data inconstancy error occurs. One thing you have to keep in mind is it will only work using the query builder in conjunction with the report wizard; I am not sure why. To incorporate the comments into an existing frame you will have to cut the frame created by the wizards and copy it into the existing frame. Otherwise the column name will not show in the source list of the property Inspector.
Good Luck -
Oracle report builder v 10.1.2.0.
HI
I would like to know how to create parameters and link them to report on oracle report builder v 10.1.2.0...
thanking in advanceOne Option is to create a parameter-list and pass it through to the report when called from forms.
v_list_id ParamList;
v_list_id := CREATE_PARAMETER_LIST('...');
And then use the ADD_PARAMETER(v_list_id, ...) Built-In.
Call the report and pass the parameter-list to it.
In reports, create a user parameter having the same name as given in the ADD_PARAMETER Built-In.
In the SQL-Query-Statement Window, the parameter may then get assigned in the WHERE-clause of the quer using e.g.
WHERE MYCOLUMN = :PARAMETER_NAME
Hope this helps. -
Requirement with Oracle report builder
Hi All,,
I had a requirement like this...i am very new to Oracle report builder tool and Oracle APPS
i need to develop a sample report in this format.......please help me
which tables i need to use??
i know how to create user parameters,field columns...etc i have 50% knowledge on Oracle report builderYou can make start with
Oracle Reports Tutorial...
Here few link...
1. Tutorial 1
2. Basic--[2] Oracle Reports 10g Tutorials
3. About Oracle Report 10g: Triggers in Report Data Source and Report Style
Hope this helps
hamid -
Passing SQL-Parameters to Oracle-Reports from java
hello,
i want to write an application in the following way:
on a java-frontend an user can select values for different
parameters. these values should be to transferred to the sql-
query of the reports rdf file. what is the syntax of an
parameter passed from java to oracle reports.
does this work with runtime.exec()... ?
does anybody have an example.
any help would be very appreciated.
greetings
Thorsten LorenzIn order to pass the parameters to report rdf, you can create user parameters in the oracle report builder, hook up the parameters with query. For example, you can create user parameter P_DEPTNO, then create a sql query: select * from dept where deptno = :P_DEPTNO. When you run this report, you give P_DEPTNO=10 as parameter, the rdf will generate report that only prints out department 10's information.
Once you have this kind of report created, you have several ways to achieve what you want.
1. use rwrun60. In your java program, you can invoke rwrun60 via runtime.exec(cmd) where cmd = rwrun60 report=dept.rdf userid=scott/tiger@orcl destype=file desformat=pdf desname=dept.pdf p_deptno=<value_from_java_app>
2. similarly, use rwcli60. the cmd would be:
cmd = rwcli60 server=repserver report=dept.rdf userid=scott/tiger@orcl destype=file desformat=pdf desname=dept.pdf p_deptno=<value_from_java_app>
3. use rwcgi60. Instead of using runtime.exec, you should use java URL object to run the report in the web environment.
option 2 & 3 takes advantage of powerful functionality of reports server, and it is much more scale than option 1. -
Oracle Reports Builder X Oracle Portal - Integration
Hi everybody
I've created some reports with Oracle Reports Builder. Then I saved them as a JSP file.
I can view these reports in a normal WEB page, without problems. All that I need is to call the page with the parameters.
Now I need to deploy this report as a portlet, inside the Oracle Portal.
So, I've read the document "Publishing Reports to the WEB" (http://otn.oracle.com/products/reports/htdocs/getstart/docs/a92102_01.pdf) and I've followed the steps to run the report (JSP file) as a Portlet.
I've done the following:
- I've created a Database Provider
- I've created the "Report Server Access"
- I've created the "Report Definition File Access"
Until this point, everything is ok, I can "Run" and "Run as a Portlet" the report.
So, in the next class, "Adding the Report Portlet to a Page" (Page 8-8), the report portlet simply doesn't appear in the Portal DB Provider to wich it belongs!!! :-(
Has someone had this kind of problem?
Any hint will be welcome!
P.S: The Oracle Portal, the Application Server, and the Reports Server are in a SUN Machine.
The Portal version is 2 (release 2).
Thanks in advancehi adriano,
here is what you have to do:
1. navigate to the db provider which holds the reports. click
on grant access: check the expose as provider
2. builder - administer - oracle reports security -
edit the reports definition file access you created for
your report.
click on the access tab - check publish to portal.
now you can see your report portlets for selection
in portal.
regards,
christian hi,
I can run the report as portlet but I can't see the "Access" tab under Customize. I know the option "Publish to Portal" is available in other object, but the "Access" tab does not appear in any of the Report Defitinion file acess page. Only "Develop" and "Manager" is available. I'm running on 9iAS R1.02.2.2a.
Thanks
Vincent -
ORACLE reports Build 10g - Data Model - query - If statement in Alias ?
I have the following select statement. It has the alias Survivors, Deaths and "All
With the ORACLE reports Build 10g - Data Model - I have the following query statement. I require the alias to change. Can the following be done.
Cases". Is it posible to use :P_LANGUAGE variable to say that -- IF :P_LANGUAGE = FRENCH THEN alias are Survivants for survivors, Décès for Deaths, Tous_les_cas for All Cases. Please advise
SELECT ALL T_NTR_MULTIBAR.CAT, T_NTR_MULTIBAR.NUM_CASES_LEFTBAR AS Survivors,
T_NTR_MULTIBAR.NUM_CASES_MIDDLEBAR AS Deaths, T_NTR_MULTIBAR.NUM_CASES_RIGHTBAR AS "All Cases"
FROM T_NTR_MULTIBAR
WHERE INSTANCE_NUM = :P_INSTANCENUM
order by ORDERSIt is no problem, you can automatically change the complete query before the report is running, which delivers you different kind of values. But the alias names does not change in the group of the data-model, although two query are running with different alias names at different times. In the data model you see the alias names of the first implemented select statement, which are the column fields in the layout.
-
Dear all;
Please pardon me. I am new to oracle report builder and I am trying to accomplish the following. First and foremost please find my pl/sql queries below. Kindly note, all the queries have been tested and I just need to be able to input those queries into the report builder. Thank you.
create or replace package test1 is
type r_cursor is ref cursor;
function report(company_name in varchar2) return r_cursor;
end test1;
create or replace package body test1 is
function report(company_name in varchar2) return r_cursor as
my_r_cursor r_cursor;
begin
if(company_name = 'ALL COMPANIES') THEN
open my_r_cursor for
select t.t_id, t.t_description from t1 t;
return my_r_cursor;
elsif(company_name != 'ALL COMPANIES') THEN
open my_r_cursor for
select t.t_id, t.t_description from t1 t
where t.t_id = company_name;
return my_r_cursor;
end if;
end;
end test1;
create table t1
t_id varchar2(200) not null,
t_description varchar2(250),
primary key(t_id)
insert into t1
(t_id, t_description)
values
('CITI', 'PROFIT: 2.2Billion');
insert into t1
(t_id, t_description)
values
('GE', 'PROFIT: 1Billion');
insert into t1
(t_id, t_description)
values
('JPMORGAN','PROFIT: 0');Now, I am trying to create a simple report in oracle report builder. The interface for generating for this report is basically, there is a dropdownlist where by the user picks a company name from the dropdownlist and clicks on the go button, this should then generate a report with the above query shown in the package. How can this be achieved? All help will greatly be appreciated.Hi,
first of all you need strong typed ref cursor, oracle reports need to detect witch are the columns returned by your cursor.
so first you create your package
create or replace package test1
as
TYPE t_record IS RECORD ( company_number PLS_INTEGER--TABLE_NAME.COLUMN_NAME%TYPE
, company_desc VARCHAR2(150)--TABLE_NAME.COLUMN_NAME%TYPE
TYPE T_REF_CURSOR IS REF CURSOR RETURN t_record;
procedure report(company_name in varchar2 ,cur_out OUT t_ref_cursor) ;
end test1;
show errors
create or replace package body test1
is
procedure report(company_name in varchar2 ,cur_out OUT t_ref_cursor)
is
my_r_cursor T_REF_CURSOR;
begin
if(company_name = '1')
THEN
open my_r_cursor for
select 1 as t_id, 'description' ast_description from dual
else
open my_r_cursor for
select 2 as t_id, 'description2' as t_description from dual
end if;
end;
end test1;
show errors
then, in your report you create a ref cursor query :
function QR_1RefCurDS
return test1.t_ref_cursor
is
C_return test1.t_ref_cursor;
begin
test1.report(1,C_return);
RETURN(C_return) ;
end;
hope this helps you !
E -
Getting a report in excel format from oracle report builder 10gDS release2
I want to get a report in excel format from oracle report builder 10gDS release2.
Is there ne method by which minimum effort is required for changing already made reports .
I have searched for it on internet :-
http://www.oracle.com/webapps/online-help/reports/10.1.2/state/content/navId.3/navSetId._/vtTopicFile.htmlhelp_rwbuild_hs%7Crwwhthow%7Cwhatare%7Coutput%7Coutput_a_simpleexcel~htm/
Example, given in the last of the page opened from the above url, is not working.
Can neone plz explain the example and how to use it
Thanks & Regards
JDOk, for the release 2 its quite straightfoward, in your calling form you would have something like this code:
declare
pl_id ParamList;
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
v_rep_status VARCHAR2(20);
v_repsrv VARCHAR2(100):= 'yourreportserver';
v_serv varchar2(50) := 'yourservername' ;
begin
pl_id := Get_Parameter_List('tmpdata');
if not id_null(pl_id) then
Destroy_Parameter_List( pl_id );
end if;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'DESTYPE' ,TEXT_PARAMETER,'Screen' );
Add_Parameter(pl_id,'PARAMFORM' ,TEXT_PARAMETER,'NO' );
repid := FIND_REPORT_OBJECT('yourreport'); SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER, v_repsrv);
set_report_object_property(repid,REPORT_DESTYPE,CACHE );
set_report_object_property(repid,REPORT_DESFORMAT,'SPREADSHEET' );
v_rep := RUN_REPORT_OBJECT(repid,pl_id);
v_rep := substr(v_rep,length(v_repsrv)+2,10 ) ;
end;
I have plenty of reports being formated to excel with this same method so it should work for you, the only diference with my previous code is this line.
set_report_object_property(repid,REPORT_DESFORMAT,'SPREADSHEET' );
The rest remains untouched.
Hope it helps. -
Interfacing of oracle report builder and java
hi all,
I have build a report using Oracle Report Builder 10g.Now i want to make use of this report in displaying the data in IE using core java.
This is the first time i am using the Oracle Report Builder .
Can anyone tell me how to proceed in right direction?Do i need to have some specific Jar,Environment to accomplish this task?
Thanks in advanceI'm not sure what version of the product you're using, but since you're just installing it may well be the base version (6.0.8.8.3).
Similar issues were addressed in a patch release (6.0.8.12), which was related to issues with some types of keyboard. You may want to upgrade to the latest patch release and retry. -
How to start Oracle Report Builder in Linux
Hi all
Can someone please help by telling how can i start Oracle Report Builder in Linux????
Thank you and best regards to allHello,
there should be a script rwbuilder.sh
in ORACLE_HOME/bin for 10.1.2.
in ORACLE_INSTANCE/config/reports/bin for 11g
Of course, you need to have a "X Display Server " up and running and the variable DISPLAY must be set to this "X Display Server "
Example :
export DISPLAY=123.456.789.12:0
$ORACLE_HOME/bin/rwbuilder.sh
Regards -
Exception while opening a JSP file created using oracle report builder
I have created a JSP page which contains embedded Oracle reports build using Oracle Report Builder.
I have deployed the JSP created above to the Oracle Application Server
but when i try to open the JSP file it gives the following error:
500 Internal Server Error
javax.servlet.jsp.JspException: rwlib-1: REP-1202: ORACLE logon not specified. at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:206) at testing.test1._jspService(_test1.java:75) [SRC:/testing/test1.jsp:0] at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:567) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
can anybody help regarding this
this is of high priority to me
thanks and regards
Subhajitbump
-
How to Publish a report created by Oracle report builder
Hi Everyone
My colleague and I were trying to use the Oracle Reports Builder to replace our existing reports generator from our ERP system. We have already created the report in the Reports Builder from the development suite.
What we are looking for is a similar solution as the Microsoft reporting service;
1) create the company report templates
2) and then upload the template files to a location (e.g. folder on the server)
3) then all user in the company can access it by a web browser with some fields which they can enter some critiria (e.g. purchase order number).
4) then send to printer and the print out should look exactly like the template.
Unfortunately, we had very bad time on try to find out what we need and how to publish that Oracle report we created. We spent 15 hours on that but no result.
In that 15 hours we tried to setup the "Oracle report service", but at last my colleague said that wasnt what we looking for, the "Oracle report service" is for reporting the error from the application hosted on the server, not for publish the company report created by the "Oracle report bulider" .
We use Oracle Database 10g for the ERP quite a long time already. We had the Oracle Developer Setup, and the Application Server Installed.
Could someone please tell us what kind of Oracle service we are actually looking for. Any other suggestion and setup guides are also the most welcoming.
Best Regards
BryanHello,
If you want to be able to execute your Reports on the web, the best solution is to use the "Oracle Application Server"
http://www.oracle.com/technology/software/products/ias/htdocs/101202.html
For example , the "Forms & Reports Services Standalone" edition
Then, use the Reports Servlet to submit the execution requests to a Reports Server :
http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_run.htm
Oracle® Application Server Reports Services Publishing Reports to the Web
10g Release 2 (10.1.2)
B14048-02
13 Running Report Requests
http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwwhthow/howto/runprint/deploy_rpt.htm
Deploying a report
Regards -
How to use LIKE function with a parameter in Oracle REPORT builder??
how could i use parameter inside a LIKE function in Oracle reports builder?
it works in SQL plus, but not in report builder!!
Example:
select code,desc from item_master where desc
like '%&give_desc%'; ---works in SQL
like '%:give_desc%' ---doesn't work in report builder!!Hi Renil,
You will need to use the wildcard character (%) and the concatenation character (||) to join to your user parameter.
i.e. like '%'||:give_desc||'%'
Regards,
John -
Get report file name in oracle report builder at run time
Dear All,
Is there any way to get the report file name in oracle report builder at run time?
for example "HR_REP012.REP"
i need this very important...
Regards,
Yousef
Edited by: Yousef_m on Jun 2, 2012 5:18 AMHello,
Did you try the builtin SRW.GET_REPORT_NAME built-in function ?
Example
function AfterPForm return boolean is
my_var varchar2(80);
BEGIN
SRW.GET_REPORT_NAME(my_var);
SRW.MESSAGE(0,'Report Filename = '||my_var);
RETURN (TRUE);
END;
Regards
Maybe you are looking for
-
So, some of UEV 2.0 clients are syncing. This one isn't. So I'm in the event logs, and the App Agent piece shows An exception has occurred while synchronizing settings packages. Exception message: "Could not find a part of the path '\\dc\UEVSETTINGS\
-
Multiple address books and/or Editing multiple address book entries
Two questions from a neophyte to Address Book: 1) Is there any way to make a "bulk change" to multiple entries in an address book (e.g. Add the text "Bob's friend" to the notes section of all the contacts in a selected group, or add the note "family"
-
How to share my topsites with my wife
I am sorry for my English but I am going to try you understand me. I have an iMac and my wife and me use that computer. I have my topsites and she has her own topsites. My question is: could we join our topsites? I update my topsites often and I woul
-
Any time I want to print photos on HP photo paper they come out with alot of pink and yellow - grey clouds show up as pink and light green shows as yellow. It doesnt matter if I use the printer 'reprint photos' button or go through the print functio
-
Hi experts in ale what is change pointers technique , how we will use ,
hi experts in ale what is change pointers technique , how we will use , & when plz explain