Calling reports 6i from Forms 9i
Hi All,
I am updating a menu application that we run from 6i to 9i. The menu app form is a list of reports. The runtime path for each report is returned to menu_link_all.path.th Works great in 6i form and reports however, I can not figure out how to get the same from the 9i form calling a 6i report.
Here is the code I am using from the 6i form....
PROCEDURE p_run_item IS
-- parameter list
pl_id ParamList;
pl_name VARCHAR2(50) := 'pl_item_id';
v_report varchar2(100);
BEGIN
p_logon(:menu_link_all.schema_name, :menu_link_all.password,:menu_link_all.connection);
if :menu_link_all.item_type = 'R' then
set_report_object_property('view_report',report_filename,:menu_link_all.path);
v_report := run_report_object('view_report');
elsif :menu_link_all.item_type = 'F' then
-- call modal form if connecting to any database other than qlqls/qlqls@qpro
-- otherwise other open forms will also lose their connection to their respective databases
if upper(:menu_link_all.schema_name) <> XXX'
and upper(:menu_link_all.password) <> 'XXX'
and upper(:menu_link_all.connection) <> 'XXX' then
call_form(:menu_link_all.path,NO_HIDE,NO_REPLACE,NO_QUERY_ONLY,SHARE_LIBRARY_DATA);
else
open_form(:menu_link_all.path,activate, session, share_library_data);
end if;
elsif :menu_link_all.item_type = 'O' and :menu_link_all.web_item = 'Y' then
web.show_document(:menu_link_all.path,'_self');
else
host(:menu_link_all.path);
end if;
END;
Within the report property pallette filename := placeholder
I did not write the original and am not sure why the filename is set to placeholder would appreciate knowing though
Looking forward to your response
Chris
My TNS problems are a result of our Network guys insisting on deploying everything through Novell Application Launcher, and pushing down TNS with the apps. We currently run systems that talk to 7.3 client, 8 client and 9 client I do not need to tell you what happens when the techos that reimage PC (2000 odd) leaving the user to deploy each of their apps which of course they never do in the correct order etc etc etc....
Will take your advice and stay with 6i as long as Oracle keep supporting it, hopefully one day they will realise that some of us need to operate in a client server environment.
Cheers and thanks
Chris
Similar Messages
-
Calling Reports 10g from Forms 10g without an app server
Hi
I have Forms 10g, and for development/testing purposes I am able to run a form in my local machine using the standalone OC4J. I needn't to deploy the form to test it.
I can do the same with Reports 10g -- run a report in my local machine without an app server.
However, I could not manage to call a Report from a Form that way, without an app server. It does not seem possible -- is it? Is there a way to set this up using the standalone OC4J or something like that?
Thanks
Luis
Message was edited by:
Luis CabralHi
Sorry for the late reply.
Here's how you start the report server from windows XP machine.
1. Choose a unique name for the report server. Eg. <your_pc_name>_repserver
2. As the report server runs in its own process, it can be started by the following command, accessible from the \ bin directory of the
Oracle Developer Suite or Oracle Application Server 10g installation.
rwserver –install <server_name> . It is now treated as a windows service and hence you can stop/start or restart from the services menu.
3. If you want specific settings for your report server, look for the <rep_server_name>.conf file under <orahome>/reports/conf directory, after starting the server from above command. This file is created by oracle automatically, once the rep server gets started.
For more info on this, please refer to white papers on the Forms and reports integration, found on the otn->Forms.
Hope this helps
Suma -
Problem n Calling Report 6i from Forms 6i
i have a problem with calling any report ( Report 6i ).
the problem is when i call any report from the Form 6i sometime its hang ,and the message from the Windowx XP will shown when any application is not responding , and the Form hangs also and need End Task to close it.
there is no sequence of hanging , sometimes third calling of the report ,sometimes forth and sometimes from the first calling of any report.
is it that Report 6i not compatible with the windows XP or 2000 and need some file or is it the problem from my code..???
i used this code:
DECLARE
pl_id ParamList;
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,'Q',text_PARAMETER,' and PA_M_HUMAN_SRL = '||:PA_M_HUMAN_SRL||' and ee_t_exit_entry_no = '||:EE_T_EXIT_ENTRY_NO);
Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
Run_Product(REPORTS, 'C:\HRS\PROSYS\REP\r_exit_per_rp.rep', SYNCHRONOUS, RUNTIME,FILESYSTEM,pl_id, NULL);
...Abdulla,
2 things
1) Make sure you are on a recent patch that as a minimum is path 13 for XP support (I think it was patch 13)
2. Try
Run_Product(REPORTS, 'C:\HRS\PROSYS\REP\r_exit_per_rp.rep', ASYNCHRONOUS, RUNTIME,FILESYSTEM,pl_id, NULL);
to run it asynchronously to eventually see an error message displayed
Frank -
Calling Crystal Reports XI from Forms 10g
Any one succeed in calling Crystal Reports XI from Forms 10g,
or using Import Java Class in Forms 10g
to call Crystal Reports XI
or any other method to invoke crystal Reports XI from FORMS
share your Knowledge to OTN
please provide me the steps,documents to [email protected]
Message was edited by:
user501763Hi,
Use web.show_document for calling the reports. Check out forms online help for syntax and example of web.show_document.
-Arun -
Accessing clustered report servers from Forms
Hi
The "Oracle Fusion Middleware Publishing Reports to the Web with Oracle Reports Services 11g R2 (11.1.2)" manual in Section 2.5 talks about setting up a High Availability environment for Reports.
It discusses how to set the cluster configuration and how to create a reports job repository in the database. It says that you need to have a unique name for each report server, finally it says that you should use Oracle Web Cache to load balance for the reports cluster.
If you are calling the report server from Forms with a run_report_object then you don't go via the web cache, so I am confused how you send your report request to the reports cluster in a load balanced fashion.
Has anyone done this or can explain how this works for Forms?
TIA
TonyI know that this is an old thread, but I've taken the liberty to bump it up, as I have the same question.
The Reports documentation describes quite succinctly how to configure the report servers to be clustered - no problem there.
The issue is that when you run a report from forms using run_report_object, you are required to specify a report server name. The Reports docs specify that all of the server names must be unique, so this seems to indicate that you cannot use a clustered report server environment from Forms, or am I missing something somewhere? Oh, wait - an insight coming here - Can you (I'll test this, but it would be good to know) specify a cluster name instead of an actual report server name? Google to the rescue:
Using RUN_REPORT_OBJECT: If the call specifies a Reports Server cluster name instead of a Reports Server name, the reports_servermap environment variable must be set in the Oracle Forms Services default.env file. If your Oracle Forms application uses multiple Reports Server cluster names, you can map each of those cluster names to a different Reports Server using reports_servermap in rwservlet.properties, as follows:
There's the answer. Sometimes writing the question down helps figure out the answer :)
Regards,
John -
Start report server from forms.
Hello everybody, merry chrismats to all.
Im working with Forms & Developer DevSuite in Red Hat Linux ES/AS.
Sometimes when I call a report from form using RUN_REPORT_OBJECT the report server is up & working but the forms dont find it & say FRM-41213 error, but after trying sometimes it begin to work.
Question : ¿ Is there anyway to start and stop report server from forms ?
Thanks in advanced & regards.Hello,
For all queries involving testcases or queries that are potentially bug related
we recommend you log a Service Request (SR) with Support via Metalink (http://metalink.oracle.com).
This will ensure your query is tracked appropriately and any urgent requests can be
dealt with in a timely manner by Global Support Services. May we also take this opportunity to remind you that the Metalink Library pages contain many Forms / Reports
articles which could be of use to you.
Best Regards
Denis SEGARD -
How to call Reports in oracle forms 10g
Dear All,
How to call Reports in oracle forms 10g.
I am using Oracle Forms 10g Reports 10g and Database 10 and and Operating system Windows XP.
Please give me the Solution.
Thanks and Regards,
FaziludeenHi Omkar,
Please check the following code.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
plid ParamList;
BEGIN
plid := Get_parameter_List('tmp');
IF NOT Id_Null(plid) THEN
Destroy_parameter_List( plid );
END IF;
plid := Create_parameter_List('tmp');
add_parameter(plid,'p_parameter',text_parameter,to_char(:POLICY.POLICY_NO));
Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
repid := FIND_REPORT_OBJECT('POL_REP');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
v_rep := RUN_REPORT_OBJECT(repid,plid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
WEB.SHOW_DOCUMENT('http://'||'LENOVO-428E9E41'||'8889'||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
'||'server=prod_report_server&P_parameter='||:POLICY.POLICY_NO||
'¶mform=no');
END;
I am used to Start the Report sever 'Rwserver Server=prod_Report_Server Start'
OracleAS Report Services
Version :- 10.1.2.0.2
Name :- prod_report_server
Status :- Server is Shutting down
Jobs in Queue 0
Active Engines 0
I got the Following Error when I trying to run the Report
FRM-41211: Integration error:SSL failure running another product
Thanks and Regards,
Faziludeen -
Calling SQL*Loader from Forms
Hi,
I was wondering if anyone has called SQL*Loader from Forms?
What I am wanting to do is use Oracle Forms as the interface where you can specify a file that you can import into the database and it will use a set control file. Push the import button and SQL*Loader does the rest.
Is using Java code to call SQL*Loader from Forms a viable option, or is there an easier way to achieve the desired outcome.
Any ideas or guidance will be much appreciated.
Thanks,
Scott.Scott,
In forms, there's a HOST built-in command which is supposed to execute any o/s commands.
What you have to do is :
1. Bult up the string exacltly in the fashion which you will run in o/s
2. Call the HOST Built-in and pass in the string
Here's a example :
Declare
lOsCmd Varchar2(1000) := Null;
Begin
lOsCmd := 'sqlldr user-id=userid/passwd@connectStr '
|| ' control=c:\temp\abc.ctl log=c:\temp\abc.log '
|| ' bad = c:\temp\abc.log';
Host (lOsCmd, No_Screen);
End;
-- Shailender Mehta -- -
How to call a URL from forms ?
Dear All,
I would like to invoke / call a URL from forms. I know we can make a call Using Web.show_document. But this will execute in a browser.
What i need to do is, i have to send a request to by calling an URL, that should not visible to any body.
This is my requirement, please help if you know.
Thanks
Balajihi,
here is a quick example : (data from url returns as a clob. you need to write it at db. and call from forms.)
FUNCTION Get_DataFromUrl(pUrl IN VARCHAR2,pProxy IN VARCHAR2,pData IN OUT CLOB) RETURN NUMBER IS
vRcv UTL_HTTP.HTML_PIECES;
vData CLOB;
eNoDataReceived EXCEPTION;
BEGIN
UTL_HTTP.SET_DETAILED_EXCP_SUPPORT(TRUE);
-- Get data pieces from Url
vRcv := UTL_HTTP.REQUEST_PIECES(pUrl,Proxy => pProxy);
IF vRcv.COUNT < 1 THEN
RAISE eNoDataReceived;
ELSE
-- Append varchar2 table data into clob variable
DBMS_LOB.CreateTemporary(vData,FALSE,DBMS_LOB.CALL);
FOR i IN 1..vRcv.COUNT LOOP
DBMS_LOB.WriteAppend(vData,LENGTH(vRcv(i)),vRcv(i));
END LOOP;
-- Copy local data into return variable
DBMS_LOB.Copy(pData,vData,DBMS_LOB.GetLength(vData));
DBMS_LOB.FreeTemporary(vData);
END IF;
RETURN SUCCESS;
EXCEPTION
WHEN eNoDataReceived THEN
RETURN FAILURE;
WHEN UTL_HTTP.INIT_FAILED THEN
RETURN FAILURE;
WHEN UTL_HTTP.Request_Failed THEN
RETURN FAILURE;
WHEN OTHERS THEN
RETURN FAILURE;
END Get_DataFromUrl;
hope this helps.
Engin. -
Calling Oracle graphics from forms
Dear friends,
My problem is that whenever i called a graph from forms
5.0 it give me error message that "PL/SQL evnivornment cannot
created"
Thanx
Faisal
nullHi friends,
I got the same problem and when I discussed with some one, he told me that it is a bug of forms 5.0 So when I used same code in forms 6.0 beta, it worked !
Nadeem -
Calling an EXE from Forms 4.5
How do i call a windows Exe from forms. Whats the exact syntax to do that? Code sample would help.
Thanks!Client/server mode calling an EXE from Forms 4.5
The following is a Foreign Function Interface that I employed to launch an outside program in its own asynchronous window. It was a great alternative to the HOST command.
The disadvantage to the HOST command was that the launched program would have to be closed before you could return to the form. With this method the the launched program
could be minimized etc. and you could switch back and forth between forms and it.
===============================================================
PACKAGE fp_winexec IS
FUNCTION run(p_cmd IN OUT VARCHAR2)
RETURN BOOLEAN;
END;
PACKAGE BODY fp_winexec IS
dll_handle ORA_FFI.LIBHANDLETYPE;
winexec_handle ORA_FFI.FUNCHANDLETYPE;
FUNCTION RunICD(
handle IN ORA_FFI.FUNCHANDLETYPE;
cmd IN OUT VARCHAR2;
disp_mode IN PLS_INTEGER)
RETURN PLS_INTEGER;
PRAGMA INTERFACE(C, RunICD, 11265);
FUNCTION run(p_cmd IN OUT VARCHAR2)
RETURN BOOLEAN IS
v_tmp PLS_INTEGER;
v_cmd VARCHAR2(2000) := p_cmd;
v_retval BOOLEAN := TRUE;
BEGIN
v_tmp := RunICD(winexec_handle, v_cmd, 1);
IF v_tmp = 2
THEN
MESSAGE('Cannot find '||v_cmd||' or one of its components);
v_retval := FALSE;
END IF;
return(v_retval);
END run;
BEGIN
dll_handle := ORA_FFI.REGISTER_LIBRARY
(NULL, 'krn386.exe');
winexec_handle := ORA_FFI.REGISTER_FUNCTION(dll_handle, 'WinExec', ORA_FFI.PASCAL_STD);
ORA_FFI.REGISTER_RETURN(winexec_handle, ORA_FFI.C_INT);
ORA_FFI.REGISTER_PARAMETER(winexec_handle, ORA_FFI.C_CHAR_PTR);
ORA_FFI_REGISTER_PARAMETER(winexec_handle, ORA_FFI.C_INT);
END;
====================================================================
-- To call the program from forms
DECLARE
v_retval BOOLEAN;
BEGIN
v_retval := fp_winexec.run(:control_block.program_to_run);
END; -
How to call reports 6i or forms 6i directly from oracle procedure
Hi,
Hi,
Env: 6.0.8.25.2 (forms 6i/reports 6i)
Database: Oracle 10g r2
We are running a client server environment and not web based.
I want to run the forms 6i or reports 6i directly from a database procedure/function and not by creating a procedure inside a form and then call a report.
Looking for calling forms6i/reports 6i directly from sql*plus commands used inside the PLSQL database procedure/function. (Just like we create a stand alone package/procedure/function).
I have developed many forms and reports and very comfortable in calling reports from forms 6i.
My question was completely different but looks like i was not able to explain properly:
I want to call the forms 6i or reports 6i directly from sqlplus* prompt and through stand alone oracle database procedure/function (procedure created directly in database but not as a program unit within form or report).
There is a requirement to call the form through database scheduling by passing fixed parameters and then generate the report pdf and email automatically to various users.
Also, is there any way to schedule a report automatically so that the report runs automatically in the scheduled time and send out reports to the users. I have developed a email program but looking for scheduling the report or forms 6i.
Thanks,
SrinivasHi,
There are couple of existing reports and forms developed in 6i and users are using them when required.
For certain MIS reports, management wants them to be generated on daily/weekly basis and email to be sent to them as PDF files.
Have a program which will convert to PDF and email to users but not able to trace on how to call the forms 6i or reports 6i and pass the report parameters so that the report is called directly through pl/sql so that i can schedule them.
All the forms and report executables are located on server1 and database server is located in server2 and running on client/server architecture.
Database version is 10g r2 and Forms/Reports version is 6i.
Any code samples would be of great use.
Srinivas -
Can I call a report in Reports 6i from Forms Services 10g?
Hi there,
I was wondering if I could call a report in Reports 6i from my application in Forms Services 10g. If so, how could I do it?
Thanks!In Forms 6i you probably did use RUN_PRODUCT to call reports. In 9i onwards you should use RUN_REPORT_OBJECT instead.
See http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
Note that you should be able to run RDF files without any conversion. -
Calling Stored procedure from Forms 6i
Dear all,
I have a stored procedure having INand INOUT parameters. I need to call it from Forms 6i triggers. Will you please tell me the syntax for calling stored procedure and stored function from Forms 6i and report 6i.
Saibaldas
[email protected]Just the same as for a local procedure, the only restrictions concern package public variables which are not visible from client side PL/SQL, and you probly want to keep the interfaces simple as client side PL/SQL (e.g. the Forms and Reports engines) don't support the same range of datatypes that the database does.
-
How to display a Report 9i from Forms if the Report has a Parameter Form?
Hi,
could some one please post me a code sample to show how to call a (paper layout, RDF) Report from Forms if I would like it to display the Report's parameter form first?
Thank you in advance.
Tamas Szecsy
I used the following code segment do achieve the job, but I get "REP-546: Warning: The value of restricted LOV parameter P_ALAL is not among the selectable values" message, even though I would like to specify the P_ALAL value on the report's parameter Form.
declare
paramlist_id ParamList;
tmp_riport_name varchar2(200);
report_id report_object;
report_job_id varchar2(200);
tmp_id number;
begin
-- init
tmp_riport_name := null;
-- parameter list
paramlist_id := get_parameter_list('mytmp_params');
if not id_null(paramlist_id) then
destroy_parameter_list(paramlist_id);
end if;
paramlist_id := Create_Parameter_List('mytmp_params');
add_parameter( paramlist_id, 'PARAMFORM', TEXT_PARAMETER, 'YES' );
-- call report
report_id := find_report_object( 'DUMMY' );
if report_id.id is null then
return;
end if;
-- display
set_report_object_property( report_id, report_execution_mode, runtime );
set_report_object_property( report_id, report_comm_mode, synchronous );
set_report_object_property( report_id, report_destype, 'preview' );
set_report_object_property( report_id, report_desformat, 'PDF' );
set_report_object_property( report_id, report_server, 'rep_geoias' );
set_report_object_property( report_id, report_filename, :ALAP_REPORTS_NAME||'.rep' );
report_job_id := run_report_object( report_id, paramlist_id );
tmp_id := to_number(substr( report_job_id, length(name_in('rep_geoias'))+2 ));
web.show_document( '/reports/rwservlet/getjobid'||tmp_id||'?server=rep_geoias', '_blank' );
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!
Maybe you are looking for
-
OIM 11g: Error Installing Sybase DBUM User Management 9.1.0.4 connector
Hi All, While installing Sybase DBUM User Management 9.1.0.4 connector from OIM console, I get the following: While on Step 2 of the wizard (Connector Installation): - Configuration of connector libraries: passes - Import of connector XML Files (usin
-
I have a 120gb Classic that has been working, connecting and syncing flawlessly for years. Now it appears that (maybe since an itunes update) my same Windows 7 x64 computer that has not changed other than the occasional iTunes update will not detect
-
From Final Cut Express to iDVD--need some help
I've read through the past threads on this topic and I still can't seem to figure out what's going on. I'm using the latest FCE and iDVD6. Here's what's going on: Put in chapter markers like I should in FCE. Export to Quicktime (not conversion) with
-
Moving Objects from Quality to Producton
Hi, whts the process used to move BO Objects from Quality to Production system. Regards, Shiva Kumar G.C
-
Help with filtering/fixing horrible sound please!
Not sure if this is a question relative to Final Cut or Soundtrack, but whichever will work... I screwed up! I was shooting video using an external shotgun mic, and forgot to turn the levels down when shooting in a loud environment. So, the sound is