Calling a builtin dialog form js?
Hello everybody!
I'm currently working on a script to change the formatting of a paragraph based on the formatting of the previous/next paragraph. Something like Thomas Silkjær "fix style pairs", but a bit more advanced.
One thing that would make my work a lot easier would be to call the buit-in indesign "Find Format Settings" dialog box (from find-chage), or the "Paragraph style option".
Is there any way of doing this (execept rebuilding them from scratch as custom ScriptUI dialogs)?
For that matter is there any way of calling any built-in dialog using jscript?
Thanks
Nope. Can't do that.
Similar Messages
-
How To Call Save As Dialog?
Dear All,
I have OAS Forms And Report Services10g(9.0.4) on Window 2000 & service pack 4 And 10g Developer Suit.
To deploy application on web..
How can I call "Save As Dialog" to save a file on the user's machine through When_Buton_Pressed trigger. The file was generated by the database.
Any help will be nice.
ThanksThanks for code
but when i place on when button trigger it gives this error dialog
Oracle.forms.webutil.file.FileFunctions bean not found.
WEBUTIL_FILE.FILE_SELECTION_DIALOG_INT will not work.
the code was
Declare
LC$Target Varchar2(256) := 'text.txt' ; -- file name
LC$Fic Varchar2(256) ;
Begin
LC$Fic := WEBUTIL_FILE.FILE_SAVE_DIALOG
'D:\',
LC$Target,
'Sélectionner un fichier'
If LC$Fic is null Then
Return ; --// end user has pressed cancel
End if ;
End;
help needed & Please tell me How can i verify that mine installation & configuration of webtill is correct.
Thanks
Rana Adnan -
WebUtil doesn't work when called from WHEN-NEW-FORM-INSTANCE trigger
I need WEBUTIL_CLIENTINFO functions to know some information from the client, like IP, JavaVersion, Hostname, OS user, etc. This functions I call through WHEN-NEW-FORM-INSTANCE TRIGGER and this doesn't nor work. I obtain the next message and error:
oracle/forms/webutil/clientinfo/GetClientInfo.class not found. WEBUTIL_CLIENTINFO.GET_IP_ADDRESS.
But when I call this WebUtil functions through WHEN-WINDOW-ACTIVATED trigger or through a button it works. Why?. I need call WebUtils in the WHEN-NEW-FORM-INSTANCE trigger!
Any help will be of great value.Basically make a timer...
Do you have the wu_test_106.fmb file that comes with the webutil install?
If you look in the wnfi trigger you will see this...
declare
fake_timer TIMER;
begin
-- Purpose of the fake timer is the we cannot call webutil in this trigger since the
-- beans have not yet been instantiated. If we put the code in a when-timer-expired-trigger
-- it means that this timer will not start running until Forms has focus (and so the webutil
-- beans will be instantiated and so call canbe made.
fake_timer:= CREATE_TIMER('webutil',100,NO_REPEAT);
--create_blob_table;
null;
end;And in the form level when-timer-expired you will see this...
:global.user_home := webutil_clientinfo.get_system_property('user.home');
:OLE.FILENAME := :global.user_home||'\temp.doc';
SET_ITEM_PROPERTY('builtins.text_io_item',PROMPT_TEXT,'Write to '||:global.user_home||'\helloworld.txt');
SET_ITEM_PROPERTY('files.userdothome',PROMPT_TEXT,:global.user_home); -
Calling database procedure in forms
Hi,
i am calling the db procedure thru oracle forms.
i will be calling some of the forms thru the procedure.
i need to know is there any builtin in forms like sleep command in unix.
I wanted to delay to process for 30 sec then, needs to continue.
Please let me know, if anyone know.
Thanks a lot
Regards
nag.Try:
DBMS_LOCK.SLEEP(30); -
Issue calling report from a Form(11.1.2).
Hi,
I have an existing code in the form to call a report and it seems to be working in the current 10g version of production server and I am migrating forms 10g to 11gR2. My issue here is when, I want to call the report from Forms 11g ( i.e. in developer suite) it is taking the report server as a blank. My Oracle FMW (11.1.2) is installed on the Windows 2008 R2 server. I do not know, if I need to configure the report server locally after the installation of FMW. Please help me out, if someone has faced a similar issue before.
DECLARE
rep_Report report_object := find_report_object('XYZ');
rep_server varchar2(100);
rep_jobidFull varchar2(100);
rep_jobidPartial varchar2(100);
BEGIN
-- Get the report server name
tool_env.getvar('REPORTS_SERVER_NAME', rep_server); --UNIX
IF rep_server IS NULL THEN -- WINDOWS
tool_env.getvar('HOSTNAME', rep_server);
END IF;
message('rep_server'||' '||rep_server);
SET_REPORT_OBJECT_PROPERTY(rep_Report,REPORT_SERVER,rep_server);
rep_jobidFull := run_report_object(rep_Report, pl_id);
message('rep_jobidFull'||' '||rep_jobidFull);
rep_jobidPartial := substr(rep_jobidFull,length(rep_server)+2,length(rep_jobidFull));
message('rep_jobidPartial'||' '||rep_jobidPartial);
web.show_document('/reports/rwservlet/getjobid'||rep_jobidPartial||'?server='||rep_server,'_blank');
END;
Errors:
FRM-41211: Integration error: SSL failure running another product.
REP-51000: The Reports Server name is not specified.
Thnx,
Sona.Hello,
Usually in development installation report server gets installed by default unless you uncheck it.
You can find the report server name by:
a)looking into rwservlet.properties file
or
b)as entry in Start > All Programs > Oracle Classic instance - asinst_1 > Reports Services > Start Report Server rep_wls_reports_<hostname>_<InstanceName>
or
c)http://<yourhostname>:7001/reports/rwservlet/getserverinfo
In order to run the report from froms you need:
-to implement the solution i described in a previous update
or
-use a harcoded value in the form
SET_REPORT_OBJECT_PROPERTY(rep_Report,REPORT_SERVER,'your_report_server name');
Since you are in 11gR2 development mode you cannote use EM or OPMN to get the status of the report server as Roberto Suggested.
For your reference also check:
Oracle Forms and Reports 11g Release 2 (11.1.2) Development Installation FAQ (Doc ID 1373210.1)
Regards,
Alex
If someone answer helped please mark it accordingly. -
How to call a report in forms?
Hello
I want to call a report in forms, but it always failures and I couldn't find any whitepapers or anything else on OTN.
I'm using reports & forms 10g release 2 and a standalone forms & reports service (release2).
I've created a simple report and store it as .jsp which based on view (already exist with data). In forms I create a button and I just want to show it on a seperate window (as PDF).
How does it work? And which set_report_object_property do I need?
Thanks in advance for any ideas or links
RemoI put a pic on the web of my standalone forms&reports service.
I couldn't figure out, what is the problem there. Start time of reports service is not available!
http://ora.lausitz-elektronik.de/image/status.gif
I also got the error message which is already described in this thread
a binding error which I couldn't resolve :(
Error calling report FRM-41213 unable to connect to Report Server
remo -
How to call a report from form in developer suite 10g
i want to call report from a form that is developed in Builder 10g. Reprot is also built in Reports Builder 10g. I now want to run report through form.Please give me any solution.
I am finding that this document is unhelpful also with respect to running a form which calls the report in the testing environment of Oracle Developer Suite. I have Googled for forms integration with reporting and most refer to this document, but it does not help.
I have download and used the "run_report_object_doc" procedure they provided, along with a supporting function. And used that.
This document indicates that if the sever is not specified then it will use the in-process server. This does not happen. When I do not specify the server I get the notorious "FRM-41211: Integration error: SSL failure running another product." I suspected that the in-process server is not getting called.
When I look through the rwservlet.properties file I find that the servlet is configured with in=process "yes". I have since changed this file so that a server is actually named. I called it "local".
This time a local.conf file is created, not a rep_local.conf file as indicated in the documentation. Anyhow when I try the form again I get the same FRM-41211 message.
Alternatively, I have change the report invocation parameters to supply a server name "local". This time I no longer get the FRM-41211 message. I get the error FRM-41214: Unable to run report.
When I use the servlet to get information, I get (can anyone see any setting that is a problem?):
http://localhost:8889/reports/rwservlet/showenv?server=local
OracleAS Reports Services - Servlet Environment Variables Return to Top
KeyMapFile C:\DevSuiteHome_1\reports\conf\cgicmd.dat
DBAUTH C:\DevSuiteHome_1\reports\templates\rwdbauth.htm
SYSAUTH C:\DevSuiteHome_1\reports\templates\rwsysauth.htm
server local
DIAGNOSTIC yes
traceopts undefined
ERRORTEMPLATE C:\DevSuiteHome_1\reports\templates\rwerror.htm
SERVER_IN_PROCESS yes
COOKIEEXPIRE 30
ENCRYPTIONKEY reports9i
DIAGHEADTAGS undefined
DIAGBODYTAGS undefined
HELPURL undefined
RELOAD_KEYMAP NO
IMAGEURL http://localhost:8889/reports/rwservlet
SINGLESIGNON yes
OracleAS Reports Services - Server and Engine Environment Variables Return to Top
PATH C:\DevSuiteHome_1\jdk\jre\bin\client;C:\DevSuiteHome_1\jlib;C:\DevSuiteHome_1\bin;C:\DevSuiteHome_1\jre\1.4.2\bin\client;C:\DevSuiteHome_1\jre\1.4.2\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\oracle\product\10.2.0\client_1\bin;C:\Program Files\CA\Dcs\DMScripting\;C:\Program Files\CA\DCS\CAWIN\;C:\CAisd\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\ZipGenius 6\;c:\Program Files\CA\SharedComponents\ScanEngine;C:\PROGRA~1\CA\ETRUST~2;C:\Program Files\CA\Unicenter Software Delivery\BIN;C:\PROGRA~1\CA\SHARED~1\CAM\bin;C:\Program Files\CA\SharedComponents\ScanEngine;C:\Program Files\CA\SharedComponents\CAUpdate\;C:\Program Files\CA\SharedComponents\ThirdParty\;C:\Program Files\CA\SharedComponents\SubscriptionLicense\;C:\Program Files\CA\eTrustITM;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Microsoft Office\Office10;C:\Program Files\CA\DSM\bin;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\DevSuiteHome_1\jdk\jre\bin
DISPLAY
LD_LIBRARY_PATH
ORACLE_HOME C:\DevSuiteHome_1
TNS_ADMIN
NLS_LANG AMERICAN_AMERICA.WE8MSWIN1252
USER_NLS_LANG
RW C:\DevSuiteHome_1\reports
REPORTS_PATH C:\DevSuiteHome_1\repadm61\srw;C:\DevSuiteHome_1\cgenr61\admin\crretc;C:\DevSuiteHome_1\cgenr61\admin;C:\DevSuiteHome_1\reports\templates;C:\DevSuiteHome_1\reports\samples\demo;C:\DevSuiteHome_1\reports\integ;C:\DevSuiteHome_1\reports\printers;
REPORTS_TMP C:\Temp
REPORTS_TAGLIB_URI /WEB-INF/lib/reports_tld.jar
java.class.path C:\DevSuiteHome_1\j2ee\home\lib\ojsp.jar;C:\DevSuiteHome_1\reports\jlib\rwrun.jar;C:\DevSuiteHome_1\jlib\zrclient.jar
sourceDir
tempDir
useDataCache
ignoreDataParameter -
Hi,
I want to call a report from Form 6i at run time. And I write the following code in When Buttton Press trigger . when I press the button it will gives no response.
declare
x report_object;
y varchar2(100);
begin
x:=find_report_object('billform');
y:=run_report_object(x);
end;
for more information , path of my report is: C:\REP\billform.rdf
please send me the solution of this problem
E_mail: [email protected]
Shahzadhi,
now i am using the following code in when button press trigger. if u give me ur e_mail address i will send u FMB and RDF files used for Scott/tiger EMP table for the sample.
declare
repo_Para ParamList;
BEGIN
repo_Para:=Get_Parameter_List('Report_para');
IF not Id_null(repo_Para) THEN
destroy_parameter_list(repo_para);
end if;
repo_Para:=Create_Parameter_List('Report_para');
Add_Parameter(Repo_para,'PARAMFORM',TEXT_PARAMETER,'No');
Add_Parameter(Repo_para,'MAXIMIZE',TEXT_PARAMETER,'Yes');
Add_Parameter(Repo_para,'BDATE',TEXT_PARAMETER,:BLOCK3.a_dptno);
Add_Parameter(Repo_para,'EDATE',TEXT_PARAMETER,:BLOCK3.b_dptno);
RUN_PRODUCT(REPORTS,'c:\apu\DDATE.rep', SYNCHRONOUS,
runtime, FILESYSTEM,Repo_para,NULL);
end;
BDATE & EDATE are two user parameters created in report.
when i press the button in form pass parameters the report will be called but no data will be display but when i directly run reprot from report buider and pass same values of BDATE & EDATE it will show data.
please give me ur e mail address or help me for this problem
best regards,
shahzad -
Calling Report from a Form on the same page
Hi,
We have a SEARCH Form and when user inputs search criteria, then we want to call a report on the same page, just below the search button. We tried many things but the report does not show up on the same page, it navigates to next page.
Please help..
Thanks
Kumar.I am trying to do a similar thing... I have created a form application component and a Report application component which is called from the search form. This works fine.
I expose the search form as a component and put it on a portal page. I do the same with the report.
When I call the page and enter the search params in the form and call the report, the report appears in a separate non-portal window. I would like the report in the same portal page to be run in-line with the new parameters.
Has anyone done this before? -
Calling Report from Oracle form 11g
I am new to Forms 11g, trying to call report from Oracle forms 11g .
I want to call report from oracle forms, but its giving error.
Below is the code
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('empreport'); -- report node in forms builder
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
set_report_object_property ( repid, report_filename, 'empreport.rdf' ); -- report name
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'RptSvr'); -- report server name
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
if
rep_status = 'FINISHED'
then
WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/dtd/rwservlet/getjobid='||v_rep||'?server='||'RptSvr','_blank');
else
message ( 'error while running reports-object ' || error_text );
message ( ' ' );
clear_message;
end if;
end;
Above code giving following error :
Unable to connect to report server RptSvr
I think my report servername is wrong
Where to find report server name in 11g.
I am Using weblogic server, so can i give weblogic server name
Thanks in advance.
Edited by: parapr on Aug 17, 2012 1:52 AM
Edited by: parapr on Aug 17, 2012 3:21 AMHi,
You have to have the report server
a. Installed and configured
b. Running.
See
http://docs.oracle.com/cd/E21764_01/bi.1111/b32121/pbr_strt001.htm
http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_verify004.htm
http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_conf003.htm#i1007341
If you are using rwservlet then you will find the name from the Configuration file referred to in the last link.
Cheers, -
Calling report from a form(Oracle team urgent)
Hi all,
I am using the following code to call a report from form
PROCEDURE Run_Report (cMode varchar2) IS
pl_id ParamList;
BEGIN
pl_id := Get_Parameter_List('OPEN');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('OPEN');
add_parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'SCREEN');
add_parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
run_product(REPORTS, 'c:/chips/reports/module6', SYNCHRONOUS,RUNTIME,
FILESYSTEM, pl_id, NULL);
null;
END;
When I run the form it is giving me
an error message :
FRM-10214- No authorization to run any application
But i can run the report in report builder and works fine.
When I press the Ok button for the above message.
It prompiting me againg username and password
When i enter Username and password it's not doing anything.
I am using forms6i in oracle8i.
Thanks for your help.
ThanksHi Rohit,
If u see my above message.I can able to run the report in reports builder.The Only problemn is I can't able to call the report from Form.
I have a button which call the report.When i Press the button it is Prompting me to enter the username,password and database .When i enter it is not doing anything.
But mt reports server is opening.
Please let me know whats the problemn
Thanks fo ryour help
Thanks
Krishna -
CALLING A REPORT FROM FORMS (PROBLEM)
MY PROBLEM IS THE NEXT:
I CREATED A MASTER-DETAIL REPORT CALLING 'ASUNTOS'WITH THE NEXT QUERY:
SELECT ABOGADOS.APELLIDO_P,ABOGADOS.APELLIDO_M,ABOGADOS.NOMBRES,
ASUNTOS.EXP_INT,ASUNTOS.MATERIA,ASUNTOS.GERENCIA,
ASUNTOS.EMPRESA,ASUNTOS.RECLAMA,ASUNTOS.PESOS,
ASUNTOS.DOLARES
FROM ABOGADOS,ASUNTOS
WHERE ABOGADOS.FICHA = ASUNTOS.F_ABOG
AND ASUNTOS.F_ABOG = :ABOGADO ;
-- ABOGADO = PARAMETER.
THIS REPORT WORKS FINE THE PROBLEM IS WHEN I TRY CALL THIS REPORT FROM FORM I'VE USE A BUTTON(WHEN_BUTTON_PRESSED) WITH THE NEXT CODE:
DECLARE
LISTA PARAMLIST := GET_PARAMETER_LIST('ABOG');
BEGIN
IF ID_NULL(LISTA) THEN
LISTA := CREATE_PARAMETER_LIST('ABOG');
ADD_PARAMETER(LISTA,'DESTYPE',TEXT_PARAMETER,'PRINTER');
ADD_PARAMETER(LISTA,'DESNAME',TEXT_PARAMETER,'LPT2');
ADD_PARAMETER(LISTA,'ABOGADO',TEXT_PARAMETER,TO_CHAR(:ASUNTOS.F_ABOG));
-- ADD_PARAMETER(LISTA,'PARAMFORM',TEXT_PARAMETER,'YES');
END IF;
RUN_PRODUCT(REPORTS,'ASUNTOS',SYNCHRONOUS,RUNTIME,FILESYSTEM,LISTA,NULL);
END;
BUT THE REPORT NOTHING DISPLAY.
THERE ARE SOMETHING WRONG WITH THE CODE IN THE BUTTONRoberto,
Does your report work when it is not called from Forms?
try the following:
[TOOLS_HOME]\BIN\RWRUN60 module=ASUNTOS destype=screen userid=<username>/<password>@<tns> ABOGADO=<some_valid_code>
where TOOLS_HOME is the directory where Reports is installed.
I can see nothing wrong with your code.
Maybe some error in the query?
Also, I would check for the existence of multiple ASUNTOS report definitions. Maybe Forms is calling an older one.
Hope this helps,
Pedro das Neves
([email protected]) -
Calling a report from forms with a paramter form
Hello,
How do you call a report from forms and get it to display the parameter form. Where you can then call the report using this parameter form. I have been using paramform=yes. but it simply runs the form.
I saw on a a thread ages ago that this was a sample of this available for download. Is this true?
thanksHere is my code sorry about posting twice. Please note that the parameter list has been created as described.
report_id := find_report_object('MENU_REPORT_NODE');
Tool_Env.Getvar('ReportsServer', reports_server);
Tool_Env.Getvar('ReportsFolder', reports_folder);
dest_file := reports_folder || :global.username || '\' || rep_name || '.pdf';
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_FILENAME, rep_name);
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_SERVER, reports_server);
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE, SYNCHRONOUS); -- wait for the report to finish
-- SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESNAME, dest_file);
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESTYPE, cache);
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESFORMAT, 'PDF');
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_OTHER, 'paramform=yes' || ' ' || 'mode=bitmap');
report_job := run_report_object(report_id); -
Calling Report From Oracle Forms
Hi
I am calling this one report from oracle forms, I am using global temporary table to run that report. I am first inserting data into the temporary table through oracle form and then i am calling report in that form to view the data in that temporary table. The problem is, we can not view the data of an other session if we are using temporary table. When i call report from that form a new session get created due to which i can not see the data. Is there any method of calling report from oracle form that a same session is used to run the report?
Thanks.As you mention Forms and Reports do not share the database session. I had the same problem and resolved it using record groups and DATA_PARAMETER to transfer data from Forms to Reports. You could also read the Note 110495.1 on Metalink to find useful information regarding this issue.
Adi -
Calling web service from forms..
Forms Gurus,
I am using this demo to call the webservice in Forms.
http://www.oracle.com/technology/obe/obe_as_10g/deploy/callws_fromforms/forms_webservice.htm#r1
I am using a simple button to call get the conversion rate from the web service.
But my code is not doing anything. I used some insert statements to see where my code is failing and is as follows:
DECLARE
jo ora_java.jobject;
rv ora_java.jobject;
EX ora_java.jobject;
v_num NUMBER;
BEGIN
INSERT INTO XXIPAY_WEB_TMP VALUES (111,'before',20);
commit;
jo:= CurrencyExchangeServiceStub.new;
INSERT INTO XXIPAY_WEB_TMP VALUES (111,'between',20);
commit;
rv:= CurrencyExchangeServiceStub.getRate(jo,'USA','great britain');
INSERT INTO XXIPAY_WEB_TMP VALUES (111,'after',20);
commit;
EXCEPTION
WHEN ORA_JAVA.JAVA_ERROR then
fnd_message.set_string('Unable to call out to Java, '||ORA_JAVA.LAST_ERROR);
fnd_message.show;
INSERT INTO XXIPAY_WEB_TMP VALUES (111,'java_error',20);
commit;
WHEN ORA_JAVA.EXCEPTION_THROWN then
EX:=ORA_JAVA.LAST_EXCEPTION;
message(Exception_.toString(EX));
INSERT INTO XXIPAY_WEB_TMP VALUES (111,'exception',20);
commit;
END;
After pushing the button I am getting the following values from the table:
111 before 20
111 java_error 20
I am importing currencyexchangestub.class, java.lang.Float.class and java.lang.Exception.class.
My code is failing before executing the new function.
Where am I doing wrong? Any help is highly appreciated.
Thanks in advance.
FubuHey Francois,
Everything went fine according to demo until I clicked on the button to get the conversion rate. The button is inserting the "java_error" row in the table and giving out this error:
SoapException: faultCode=SOAP-ENV:Protocol;msg=Unsupported response content type "text/html;, must be: "text/xml". Response was: <! DOCTYPE HTM
I am attaching the PL/SQL package generated out of the java class. Hope this is correct:
PACKAGE BODY CurrencyExchangeServiceStub IS
-- DO NOT EDIT THIS FILE - it is machine generated!
cls ORA_JAVA.JCLASS;
fid ORA_JAVA.JFIELD;
mid ORA_JAVA.JMETHOD;
args JNI.ARGLIST;
-- Constructor for signature ()V
FUNCTION new RETURN ORA_JAVA.JOBJECT IS
BEGIN
cls := JNI.GET_CLASS('mypackage1/CurrencyExchangeServiceStub');
insert into xxipay_web_tmp values (222,'beforemethod',12);
commit;
mid := JNI.GET_METHOD(FALSE, cls, '<init>', '()V');
insert into xxipay_web_tmp values (222,'aftermethod',12);
commit;
args := NULL;
RETURN (JNI.NEW_OBJECT(cls, mid, args));
END;
PROCEDURE main(
a0 ORA_JAVA.JARRAY) IS
BEGIN
cls := JNI.GET_CLASS('mypackage1/CurrencyExchangeServiceStub');
mid := JNI.GET_METHOD(TRUE, cls, 'main', '([Ljava/lang/String;)V');
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_OBJECT_ARG(args, a0, JNI.GET_CLASS('[Ljava/lang/String;'));
JNI.CALL_VOID_METHOD(NULL, mid, args);
END;
FUNCTION getRate(
obj ORA_JAVA.JOBJECT,
a0 VARCHAR2,
a1 VARCHAR2) RETURN ORA_JAVA.JOBJECT IS
BEGIN
cls := JNI.GET_CLASS('mypackage1/CurrencyExchangeServiceStub');
mid := JNI.GET_METHOD(FALSE, cls, 'getRate', '(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Float;');
args := JNI.CREATE_ARG_LIST(2);
JNI.ADD_STRING_ARG(args, a0);
JNI.ADD_STRING_ARG(args, a1);
RETURN JNI.CALL_OBJECT_METHOD(obj, mid, args);
END;
Please let me know where I am doing wrong.
One more thing I would like to mention is that my form builder is on UNIX server and JDeveloper is on my local machine. So I am ftp'ing the java class and the deployed JAR file into my home directory on UNIX server in "binary" mode. And in the CLASSPATH I am mentioning my home directory,So that the java class gets picked up when I import the Java class.
Thanks in advance,
Maybe you are looking for
-
Table does not exist odbc -2004
Hi, I'm updating a UDO in SBO 9. PL11 by GeneralService via DI API The code worked without problems, but I activated the option LOG from customizing options and get the following error: "Table does not exist odbc -2004 " sCmp = AccCommon.Main.Company
-
ABAP Proxy configuration Error (Not able to connect R/3 to IB )
Hello All... I am trying to configure the connection from R/3 to XI using the ABAP proxy generation.For that I have followed the steps given in the below blog /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies We created all the
-
Macbook pro not getting started!
HI Community', i am facing issues with my macbook pro, Its not getting started and the charger does not show bright green signal. LED is bit dim. i Had went to service centre, it worked with their charger and had turned on but not turning in now. Ple
-
Complaint about Edit/Find in Tiger Finder
Am I the only one who thinks the new Find command in Tiger Finder is one or more steps backward? I only use Find to perform manual synchronizations between two computers, office and home. There are seven folders in which files might have been modifie
-
Hi -- Is there a way to remove FaceBook integration from OSX ML either from a GUI service or from an environmenal setting at the shell prompt? It really bugs me that after using Safari to visit financial / banking sites (after ALL cookies / history a