How to: Call a Report (9i) from JDeveloper
Hi,
how can i call a Report from JDeveloper and how can i create a PDF File from an available report.
I have created both, a jsp file and a rdf file.
Thanks
Achim
Hello Achim,
You do not need to create multiple files:
- you can create a single file from the Builder and specify 'Paper anfd Web Layout'
- save the files as JSP
In this case the JSP file contains the both layout Paper and Web, in this case you can:
- edit the web source (JSP) from JDeveloper
- use Reports Builder to edit the Paper Layout -that you can format as PDF-.
Regards
Tugdual
Similar Messages
-
How to call a Report 10g from a parameter form..?
Hello,
pls i wanna know the procedure of :
How to call a Report 10g from a parameter form..?
regards,
Abdetu..hopes it work for you.
procedure get_report is
pl_id paramlist;
p_year varchar2(4);
param_name varchar2(10) :'param';
begin
pl_id := get_parameter_list(param_name);
if not id_null(pl_id_)then
destroy_parameter_list(pl_id);
end if;
pl_id := create_parameter_list(param_name);
p_year := year -- assign the value.
add_parameter(pl_id,'p_year',text_parameter,p_year);
execute_report('report_name',pl_id);
end; -
How 2 call a report 10g from a parameter form 10G
Hello,
pls. i need steps ,or docs how 2 run a report 10g from a parameter form ;
Is it requireD for the Parameter form to call a report an Application Server no* ???*
i had a previous experience with the code due to run the report as follows:_
DECLARE
PARAM_ID PARAMLIST ;
PARAM_NAME VARCHAR2(30) := 'REPORT_PARAMETER';
ALRT NUMBER;
ERR_TXT VARCHAR2(1000);
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
v_REP_SERVER_NAME VARCHAR2(200);
v_ip VARCHAR2(100);
BEGIN
PARAM_ID := GET_PARAMETER_LIST(PARAM_NAME);
IF NOT ID_NULL(PARAM_ID) THEN
DESTROY_PARAMETER_LIST('REPORT_PARAMETER');
END IF;
v_REP_SERVER_NAME := REP_SERVER_NAME;
BEGIN
SELECT PARAMETER_VALUE
INTO v_ip
FROM GENERAL_FIXED_PARAMETERS
WHERE PARAMETER_ID = 'REPORT_SERVER_IP';
EXCEPTION
WHEN OTHERS THEN
Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);
Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);
END;
PARAM_ID := CREATE_PARAMETER_LIST(PARAM_NAME);
ADD_PARAMETER(PARAM_ID,'PARAMFORM',TEXT_PARAMETER,'NO');
ADD_PARAMETER(PARAM_ID,'COPIES',TEXT_PARAMETER,:COPIES);
ADD_PARAMETER(PARAM_ID,'P_DISPLAY',TEXT_PARAMETER,:DESTYPE);
ADD_PARAMETER(PARAM_ID,'DESFORMAT',TEXT_PARAMETER,'pdf');
ADD_PARAMETER(PARAM_ID,'group_id',TEXT_PARAMETER, :group_id);
repid := find_report_object('WH_R01_GRP_ITEM');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_rep_server_name);
v_rep := RUN_REPORT_OBJECT(repid,PARAM_ID);
WEB.SHOW_DOCUMENT('http://'||V_IP||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?server='||v_REP_SERVER_NAME,'_blank');
-- http://server_name:8889/reports/rwservlet?report=rep_name.rdf¶mform=yes&destype=CACHE&desformat=htmlcss&userid=id/pass@conn
END;notice here the value of V_IP it is retrieved from the following table desc...
The table desc GENERAL_FIXED_PARAMETERS that i select from the values are as follows:_
SQL> DESC GENERAL_FIXED_PARAMETERS;
Name Null? Type
PARAMETER_ID VARCHAR2(200)
PARAMETER_VALUE VARCHAR2(200)
PARAMETER_DESC VARCHAR2(200)
MODULE VARCHAR2(200)it's stored value is as follows:
SQL> select * from GENERAL_FIXED_PARAMETERS;
PARAMETER_ID PARAMETER_VALUE PARAMETER_DESC MODULE
REPORT_SERVER_IP rep_oraas_OracleAs_10gNotice here the value of the PARAMETER_VALUE is a string ; as if it's a generic value to be applied on any REPORT_SERVER_IP this value ...
Where Should i retrieved or Get ???
That was long time i can't remember pls help me 2 run my report what should id
i searched the google but there is a missing link can u help and guide me it's urgent pls.
if needed 2 start oc4j for reports , setting pathes ,fonts, enviroment file etc.
The report object's property in the object navigator is as follow:_
+ Oracle Developer Integration node :
File name : My_Report_name
Execution Mode: Runtime
Communication Mode : Synchronous
Data Source data block :NULL
+ Reports node:
Report Destination Type : FileThanks in advance,
Regards,
Abdetu...Thanks InoL for reply,
REPORT_SERVER_IP is not correcti had doubted but wasn't sure of it...!
My First Question was :
Is it requireD for the Parameter form to call a report an Application Server no ???*the answer i found is Yessss
Regards,
Abdetu... -
How to Call Crystal Reports XI from Oracle Forms 6i
hi can any one ,Please provide me the steps to call Crystal Reports XI from Oracle Forms 6i
very urgent please
if any Doument,attachment please send to [email protected]
Thanks in advance
Regards
S.Thirumalai selvanHi All,
Can anyone send me the steps to call Crystal Reports XI from Oracle Forms 6i (client/server)?
Thanks in advance, Lidija
My email is: [email protected] -
How to call Oracle Report 6i from a java swing/ejb codes (client server)
Hi to all.
We now have to do reports using Oracle Reports that have to call from Java Swing (interface) / EJB (Backend).
How can we call the Oracle Reports 6i from Java Swing?
Do anybody done that?...Any ideas? Where should we find the resourse, if any?
Thanks in advance and best wishes to all,
Rushdan.Hi,
6i
1) One way
Runtime.getRuntime().exec("rwcli60 report=test.rdf .... server=server_name ...<cmd line params>...");
2) From swing, open a browser and submit request programmatically
Re: Calling reports6i reports from java swing client serve application
Thanks
Ratheesh -
How to call PL/SQL procedure from Jdeveloper
hai
i am using JDeveloper 10g version 10.1.3. i am working on Web Application[JSF,ADF BC]. i had commit button in one form. when i click that button a PL/SQL procedure can be invoked.( the procedure is to check for primary key)
how to do this
thanks in advance
C.RThere are already some threads about calling PL/SQL from Java. E.g.: adf bc jsf application and database stored procedure
Ronald -
How to call crystal reports in oracle Jdeveloper
Hi all,
I am new in crystal reports . I had created crystal reports Eclipse IDE 3.3.2 in that i created .rpt & .jsp . how to pass parmeter in that file to Jdeveloper or which fille use to pass parameter from daabase
can any one help
Regards
AjitHi A,
I am having issues trying to get a small application that I developed in eclipse (CR4E)that uses Crystal Reports to work with Oracle's JDeveloper OC4J embedded server. I can run the application fine and when I try to view a report I get a partial report rendering and then get the following Exception:
Also while inserting on the page Showing error on the page
java.lang.IllegalStateException: Writer already retrieved at com.evermind.server.http.EvermindHttpServletResponse.getOutputStream(EvermindHttpServletResponse.java:880) at com.evermind.server.http.EvermindHttpServletResponse.getJspOutputStream(EvermindHttpServletResponse.java:875) at com.evermind.server.http.EvermindJSPWriter.initServletOut(EvermindJSPWriter.java:525) at com.evermind.server.http.EvermindJSPWriter.writeOut(EvermindJSPWriter.java:537) at com.evermind.server.http.EvermindJSPWriter.jspflush(EvermindJSPWriter.java:436) at com.evermind.server.http.EvermindJSPWriter.close(EvermindJSPWriter.java:406) at oracle.jsp.runtime.OracleJspRuntime.extraHandlePCFinally(OracleJspRuntime.java:1689) at NEWPROJECTR.jspService(_NEWPROJECTR.java:89) [/NEWPROJECTR.jsp] at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)
Actually i am firstly Compiling CR4E in that i am using Apace Tomcat Server 5.5 .in CR4E it is Running fine But while inserting these .Jsp file in Jdeveloper and in that I am Using OC4J server for compiling that time gives these above error
Can OC4J server not supporting to .rpt files?
Thank You !
Sincerely,
Ajit -
How to call a report 9i from form9i
I have tried many and many times but failed. Could you offer a simple tutorial.
Form: 9i
Report: rdf file
error: REF-0503: You did not specify the name of a report
or : unable to run the report
when-button-pressed trigger:
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('REPORT1');
v_rep := RUN_REPORT_OBJECT(repid);
Web.Show_Document('http://vteit-0392:8888/reports/rwservlet/getjobid' ||substr(v_rep, 18) || '?server=mysrv');
END;I think you specified report object name incorrect.
in command line:
repid := FIND_REPORT_OBJECT('REPORT1');
Report1 must be name of report object in Form Builder.
However to call report from Oracle Form you must do more work. For example:
- Create report server name
- Adding some code to set property for report object base on report server you created.
Cheer! -
How to call PDF Report with parameters in jdeveloper 10.1.3
Hi all,
how to call PDF Report with parameters in jdeveloper 10.1.3
for example I have Report name is repdept.pdf with parameter as deptno
and I want call this Report from JSP page ?
thanks
frankHi all,
how to call PDF Report with parameters in jdeveloper 10.1.3
for example I have Report name is repdept.pdf with parameter as deptno
and I want call this Report from JSP page ?
thanks
frank -
Call Report Builder from Jdeveloper 10g with parameters
hello , how are you
i am in oracle forms for long , today i am work in jdeveloper 10g, i want some questions
1- how call oracle report builder from oracle jdeveloper 10g with parameters
2- if there aren't call from jdeveloper 10g, what is good report tools?
thanks.I'm assuming that what you want to do is actually run a report from a JDeveloper application.
To do this you can use the various ways that Reports offer to invoke reports with the report server - including URL & Web Service interfaces.
More information on these in the Oracle Reports - Publishing reports manual. -
How to call a jsp page from oaf and run in jDeveloper
Hi all,
I created sample jsp and then tried.
String temp = "sample.jsp?";
pageContext.setForwardURL(temp,
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true,
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES);
It worked.
But when i tried with one of the custom page that i downloaded from server it is giving error.
But now i need to call that page.
Its Code is given on below link:
Re: how to call a jsp page from oaf
Please help me to do this.
Thanks in advance.
Regards,
RajRaj,
1. Hope you have placed the custom jsp page (which you have downloaded from server) under "jdevhome\jdev\myhtml\OA_HTML" directory ?
2. Try to run the custom jsp page from Jdeveloper directly and check whether its working properly or not ?
(i.e. add jsp page to any project in Jdeveloper then right click on jsp page and select Run xxx.jsp)
3. If page errors out then custom jsp page seems require few parameters to run it successfully. Pass all requied parameters and test.
4. There is no problem in the way you are calling jsp page from OAF page.
regards,
Anand -
How to call a Shell Script from Report 6i
Hi All,
Can anybody tell, how to call a Shell Script from Report 6i.
Thanks in Advance,
Balatry the SRW.USER_EXIT (user_exit_string CHAR);
-
How to call BI report from web dynpro
Hi ,
How to call BI report from webdynpro application and what are the prerequisites for that .
Please provide an example to work with BI application frame UI element
ThanksHi Rajpal,
Please go through this..
calling BI report
Cheers,
Kris. -
How to call crystal report from plsql
How to call crystal report from plsql?
http://asktom.oracle.com/pls/ask/f?p=4950:8:14685899341865976974::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:952229840241,
-
How to call a maintenance view from a program
Hello Abapers,
Can anybody explain with some examples. How to call a mainetenance view from a program.
Thanks
Ranjith.Use FM 'VIEW_MAINTENANCE_CALL'.
REPORT zmaintaintest.
VARIABLES / CONSTANTS
CONSTANTS:
c_action(1) TYPE c VALUE 'U', "Update
c_viewname TYPE tabname value 'ZEMP_EXAMPLE', "View Name
c_field(6) TYPE c VALUE 'EMPNO'. "Field Name
INTERNAL TABLES
DATA: itab_rangetab TYPE STANDARD TABLE OF vimsellist,
v_empno TYPE zempno,
wa_rangetab TYPE vimsellist.
SELECTION SCREEN
PARAMETERS: p_empno TYPE zempno OBLIGATORY. "Emplyee ID
AT SELECTION-SCREEN
AT SELECTION-SCREEN.
Chcking the existence of the user in EMPLOYEE table
PERFORM validate_employee.
START_OF_SELECTION
START-OF-SELECTION.
This will restrict the user view so that user can only view/change
Table data corresponding to his/her Employee ID
PERFORM define_limited_data_area.
Displaying table maintenance view for a particular employee ID
PERFORM call_view_maintenance.
*& Form validate_employee
Validate plant entered in the selection screen
FORM validate_employee.
SELECT SINGLE empno u201CEmployee ID
FROM zemp_example u201CEmployee Table
INTO v_empno
WHERE empno = p_empno.
IF sy-subrc <> 0.
MESSAGE 'Not an Valid User' TYPE 'I'.
ENDIF.
ENDFORM. "validate_employee
*& Form DEFINE_LIMITED_DATA_AREA
To restrict the user view so that user can see/change table data
corresponding to his employee ID. Here one internal table is
getting populated with field name as u201CEMPNOu201D (Key field of the table)
And value as given by user in Selection Screen and this is passed as
Parameter in function module 'VIEW_MAINTENANCE_CALL'
FORM define_limited_data_area.
CLEAR wa_rangetab.
wa_rangetab-viewfield = c_field.
wa_rangetab-operator = 'EQ'.
wa_rangetab-value = p_empno.
APPEND wa_rangetab TO itab_rangetab.
ENDFORM. "define_limited_data_area
*& Form CALL_VIEW_MAINTENANCE.
Displaying table maintenance view for a particular employee ID
FORM call_view_maintenance.
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
EXPORTING
action = c_action
view_name = c_viewname
TABLES
dba_sellist = itab_rangetab.
ENDFORM. "call_view_maintenance
Regards,
Joy.
Maybe you are looking for
-
Can connect with laptop but not desktop
The desktop that i have the router wired to can't connect to the router's homepage or the internet, although i can get a response if ping the router's ip. However, I can connect to the net wirelessly with my laptop. What gives?
-
How i take an old back form my old iphone to my new iphone?!when i acces icloud from my phone and go to manage storage i have 4 back up for diferent phone how can acces this data?!
-
I recently had my Mac OS X serviced and they took everything off of it and put it on a remote hard drive. I can't figure out how to install it back onto my Mac. I tried dragging and dropping. Didn't work. Any advice would be greatly appreciated.
-
How to make buyer confirm he recieved the promised goods?
Hello, i recently sold some virtual goods to a buyer, he sent me the money and i send him the promised goods. His account is verified and 6 years old, but i have the suspicion something might be wrong. Today he contacted me again in order to proceed
-
Strange Wierdness in 16:9
I film in 16:9 - have all of my settings set for it within Final Cut (Anamorphic) however when I burn my discs the films fit television screens and in some cases they look stretched as though it is letterbox... I am not seeing the black bars at the t