Call Spec in Developer 6i
Hi Guys,
Can I create following function in Forms6i Program Units ?
FUNCTION Hello(x varchar2) RETURN VARCHAR2 IS
LANGUAGE JAVA
NAME 'hello.WishMe(java.lang.String) return java.lang.String' ;
I have hello.class in FORMS_JAVADIR Path.
IF I load hello.class in Database, I can definitely use above
function, Can I do the in Forms 6i also ? Is there any alternate
way of calling a class ?
Any pointers or tips would be appreciated ?
Thanks & regards
Chandra Mohan
Hi,
What do you mean by its not working? Are you getting error? Or its not firing the trigger?
Anyways, follow this steps.
Edit the fmrweb.res (for web forms ) or fmrpcweb.res (for client server) and change the combination of the function keys. By default, when you code the KEY-F1 trigger, you can raise the trigger by pressing <Shift+Ctrl+F1> So, if you want to fire the trigger when you press just F1, edit the .res file (as mentioned above), and change the modifier to 0 (instead of 3).
-Arun
Similar Messages
-
I have loaded some interdependent java classes in Oracle
successfully, Not sure about how to write call specs for
these as one method of class A needs an object of class B as
input parameter.
TIA
PMA silly thought just occurred to me. Wouldn't it be
great to have a dictionary of baby names for java
classes? I sometimes have a hard time coming up with
a name for a new class. You know, something other
r than Foo. Be great if I could just look up some
suggestions for the kind of thing I'm doing...okay
back to work.What? I'd rather have a name which is related to what the class does. It doesn't make sense to call e.g. a Date class Jim.
Kaj - not a class -
Hi,
When I write a java sp returning a long[], how can I write a
call spec in PL/SQL,
is anyone having any ideas?
thanks, first.Try Changing your namespace for java to ConvertDate2(This class should be in classpath) and replace
<stringdate><xsl:variable name="stringDate" select="java:ConvertDate2.changeDate(ds_start_date)"/>
</stringdate>
with
<stringdate><xsl:variable name="stringDate" select="java:changeDate(ds_start_date)"/>
</stringdate>
Make sure your query matches with ds_start_date correctly. -
I have loaded this java program, but the call spec below is failing because "the declaration ... is incomplete or malformed". Any suggestions?
HERE IS THE PROGRAM:
import java.io.*;
import java.util.*;
public class oscmd{
static public String[] runCommand(String cmd)
throws IOException {
// set up list to capture command output lines
ArrayList list = new ArrayList();
// start command running
Process proc = Runtime.getRuntime().exec(cmd);
// get command's output stream and
// put a buffered reader input stream on it
InputStream istr = proc.getInputStream();
BufferedReader br =
new BufferedReader(new InputStreamReader(istr));
// read output lines from command
String str;
while ((str = br.readLine()) != null)
list.add(str);
// wait for command to terminate
try {
proc.waitFor();
catch (InterruptedException e) {
System.err.println("process was interrupted");
// check its exit value
if (proc.exitValue() != 0)
System.err.println("exit value was non-zero");
// close stream
br.close();
// return list of strings to caller
return (String[])list.toArray(new String[0]);
public static int main(String args) throws IOException {
try {
// run a command
String outlist[] = runCommand(args);
// display its output
for (int i = 0; i < outlist.length; i++)
System.out.println(outlist);
for (int i = 0; i < 1; i++)
String outl = outlist[0];
catch (IOException e) {
System.err.println(e);
if (outl == "exit value was non-zero")
return 1; else return 0;
HERE IS THE CALL SPEC:
CREATE OR REPLACE FUNCTION shellcmd2 (v_cmd IN VARCHAR2) RETURN NUMBER
AS LANGUAGE JAVA
NAME 'oscmd.main(java.lang.String) return int';
nullThe Spec doesn't depend on your Source-Code.
It's even possible to create a call spec
without loading the classes into the Server before.
It performs only syntax-checking of the Java-call.
Class-checking is performed at runtime.
The problem is the call to the main-method.
Usually the main-Method is declared
public static void main(String[]);
It seems that the Oracle-Server checks
if the main-method call confirms to that signature.
Change the name of your method and the call-Spec will work.
It's possible to create a procedure calling the main-method using the standard-signature
as mentioned above.
null -
How to call pdf forms developed in ABAP from WD Java application?
Hi
I have a web dynpro ABAP application that that is responsible for generating PDF forms for all other applications (WD ABAP and WD Java).
How can I call the pdf forms generated by the WD ABAP application from WD Java application in a separate window?
These forms are to be called on click of a "Print" button. Also, these forms are non interactive.
Kindly let me know if you need any other information.
Regards
Vineet Vikram
Edited by: vineet vikram on Jun 24, 2009 7:28 AMin addtion to Nikhil's response. you can write following code on action of print button:
IWDWindow window = wdComponentAPI.
getWindowManager().createExternalWindow(
"<ABAP Application URL>",
"<Title for window>",
false);
window.open();
to Close the application, you can use the window close or u can fire an event to close current window.
Abhinav -
How to call test Sequences developed by using CVI Test Execuitve toolkit in Test Stand?
There is a feature in TestSatnd which can convert CVI sequence to test Stand Sequences. But test stand is not recognising these sequences saying " not a valid CVI test sequence". Is there any version Issues, while converting these sequences to TestStand?
Hi Scott
In continuation of previous question..
As per the suggestion, when I am trying opening one sequence(.SQU) file,developed in CVI Test Executive V 1.0.1., in CVI Test Execcuitve V 2.0.1, Executive is throwing error.
The Pop Error is " Section [Sequence] missing from sequence file c:\xxx.squ"..
and when I am trying opening these sequence file in sequence editor, the tool it self is crashing.
Please suggest!!
Is there any specific tokens which we need to add in .SQU files of V 1.0.1, so that V 2.0.1 can understand them? Just to check the possibility of manual updation of .SQU files.
Regards
Amit -
Calling report from developer 10g in word program
My Dears:
I Wrote this code to open report in word program
web.show_document('http://127.0.0.1:8889/reports/rwservlet?report=c:\emp.rdf&destype=cache&desformat=RTF&userid=scott/tiger@test¶mform=no&MIMETYPE=application/msword');
I use this code in apps and work well
but when I work in out environment apps not work
thanksHi
client want to open all report in word program before I worked before in apps system and I use the previous code in oreder to be abel to help u i need u to answer these questions ...
do u mean that u were calling the web.show_document from forms 10g and it was working pretty good or where u would call it from and it was working good ?
and from where in ur program u r trying to call and it won't work ?
r u using webutil ?
Regards,
Abdetu... -
How to write call specs for a java stored procedure that takes a nested obj
Example Class :
public class B {
int number;
String str;
public class A {
private B[] _childern;
public B[] getChildern(){
return _children
public static void saveAll(A a) throws SQLException {
B[] children = a.getChildern();
for(int i=0; i<children.length; i++){
saveChild(children);
public static void saveChild(B ch)throws SQLException {
// do something
What would be the call specification for the method A.saveAll(A)? Your help will be apprecited.
Thank you
AjmalIn other words, How to pass a Java Object from a Java stored procedure to a Java client ???
Hello,
I don't know to deal with a Vector object that has been generated from a stored procedure.
Should I create first in the JDBC client and pass it as argument to the procedure ?
Thanks in advance. Here is an extract ...
On the client side :
<<
Vector buffer = new Vector();
CallableStatement call =
con.prepareCall ("{call my_procedure_run (?, ?)}");
call.registerOutParameter(2, java.sql.Types.JAVA_OBJECT );
call.setString (1, "bla bla bla");
call.setObject (2, buffer);
call.execute ();
buffer = (Vector)call.getObject (2);
>On the Java stored procedure
<<
public class my_procedure
public static void Run(String input_value, Vector buffer)
// ??? Vector buffer = new Vector();
try
while ( true )
buffer.addElement(...) ;
catch(Exception ex) { } -
Calling function - SQL Developer works - ODBC error
Hello,
I'm trying to use a new function like this:
EXECUTE zUpdateUser ('xxyyzz-2205','SEAAN009','45SKNYE','E')
It works fine in Oracle SQL Developer but when I type the same command in DaFT or WinSQL that connect to the DB using ODBC I get an error message back:
[Oracle][ODBC]Syntax error or access violation.
I'm using the Oracle 10g Client and ODBC driver.
Any ideas what I could be doing wrong?
Thanks.Are you connecting to the same database user from SQL Developer and ODBC?
-
How to workstation call Oracle SQL Developer tools from a remote server
Respected All,
I have installed Oracle 11g on Microsoft Windows Server 2003. I want to access Oracle Developer Tools from server to different client machine which are connected with server through LAN.
regards,
pkjuser10683742 wrote:
Dont think i have DBA access..It gives the following error
ORA-00942: table or view does not exist
00942. 00000 - "table or view does not exist"You don't have to have 'dba' access, per se. You just have to have SELECT ALL TABLES privilege. when you use a db_link, you are connecting to the remote db with the user defined in the link, and .. on that db .. you will have the privileges of the user defined in the db link. Exactly as if you had used sqlplus to connect to that db with that user. -
System events not captured when call from SQL Developer?
Hi,
This seems a bit weird to me. I'm not sure if there is something going on that I'm not seeing, or just not aware of.
Oracle 9.2.0.5.0
SQL Developer 2.1.1.64
If I run the following in sqlplus, I correctly get a trace file generated
alter system set events '1403 trace name errorstack level 14';
begin
raise no_data_found;
end;
OS Pid: 553 executed alter system set events '1403 trace name errorstack level 14'
Fri Apr 9 14:11:01 2010
Errors in file /filer3/admin/dev2/udump/dev2_ora_553.trc:
ORA-01403: no data found
ORA-06512: at line 2However, If I run it from SQL Developer.. No trace file is generated. All i get in the log file is the alter system message
OS Pid: 6806 executed alter system set events '1403 trace name errorstack level 14'Any idea what could be going on here? I'm not sure if this is an Oracle problem, or an SQL Developer problem? Or I'm just misunderstanding how this should work?
Thanks
Matt.Sorry I forgot to mention, I'm selecting Run script ( F5 ) in SQL Developer.. The script output in SQL Developer is
alter system set succeeded.
Error starting at line 71 in command:
begin
raise no_data_found;
end;
Error report:
ORA-01403: no data found
ORA-06512: at line 2
01403. 00000 - "no data found"
*Cause:
*Action: -
Call Developer 2000 Reports/Forms from PL/SQL stored proc.
Hello all,
I am searching for a method for a stored procedure on Oracle 8.0 to call a Oracle Developer 2000 Report or Form.
Any suggestions,
Thanks,
JulianNo offense,
Do you mean calling a trigger in a Form or Report to fire off another of the same? Or do you mean how do I fire Forms from a Database stored procedure?
Please I don't mean any offense, it is just hard, sometimes to say simple concepts and not sound, well, bad.
Otherwise think about it. A Stored procedure is run inside the database, it has no idea where you client is, and doesn't know which type of client you have (X-Windows, Microsuck), and doesn't know how to fire off an app on the client.
One concept that is hard, sometimes, to get is where things are run. Forms runs on an Apps Server (Java screens), or a client, like on a PC. Stored procedures run, usually, on a whole different box, a database server. The database server is not that well connected that it can fire off a app on a client. Try to go to a Unix database server and run a command to fire off Internet Explorer on your client!? Not real easy to do. -
I am trying to call a function with LABVIEW developed in CCS compiler
I used MPLAB (CCS compiler) to develop c code that is used to transmit and receive messages to and from an automotive display. It works great as a stand alone. I would like to call this function from LABVIEW but am having difficulty doing so. Does anyone have experience calling a MPLAB developed project from LABVIEW? Thanks in advance.
MattPTE wrote:
I used MPLAB (CCS compiler) to develop c code that is used to transmit and receive messages to and from an automotive display. It works great as a stand alone. I would like to call this function from LABVIEW but am having difficulty doing so. Does anyone have experience calling a MPLAB developed project from LABVIEW? Thanks in advance.
Matt
MPLab is for programming PICs if I'm not mistaken. I'm not sure how you would want to call a function compiled in MPLab from LabVIEW directly. MPLab will create binary code for execution on PICs and there is no LabVIEW that could run on a PIC. On the other hand I didn't think you could create standard Windows DLLs, Mac shared libraries or similar in MPLab at all.
You will have to recompile your code in a C compiler that can create the standard shared library format for the plaform you want to call it from LabVIEW.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
When call form developer, I've got this error
Dear expert
when i call program form developer, i've got error dialog below but i can't fixed this problem (i used Oracle9iDS)
=====================================
Microsoft Visual C++ Runtime Library
=====================================
Assertion failed!
Program: D:\Oracle\......\bin\ifbld90.exe
File: \ut\SRC\UTJ\SRC\UTJL.C
Line:428
Expression: result == utjER_SUCCESS
For information on how your program can cause as assertion
failure, see the Visual C++ documentation on asserts
(Press Retry to debud the application - JIT must be enabled)
====== ===== ======
Abort Retry Ignore
====== ===== ======Its very difficult to answer your question with the information you have given...
What program are you calling?
How are you calling it?
When does it fail?
Have yuo debugged it to see what line it fails on
Has it always failed or has this just started happening?
Regards
Grant Ronald
Forms Product management
http://www.groundside.com/blog/content/GrantRonald/ -
Graph developed in 6i to be called from forms 9i on web?
Hi Every one
Can you please send me a sample form calling the Graph developed in 6i to be called from forms 9i on web? Any help will be appreciated
waiting for prompt reply.
Thanking you,
BinishHi Every one
Can you please send me a sample form calling the Graph developed in 6i to be called from forms 9i on web? Any help will be appreciated
waiting for prompt reply.
Thanking you,
Binish
Maybe you are looking for
-
Hi, I'm using sql*loader to load some files into tables and I'd like to know if there is a way to force a date column to load sysdate. Can someone provide sample code ? Tks, Helena.
-
I don't understand why my loop isn't working. Can someone help, please?
public class PolarMain { public static void main(String[] args) { Polar p1 = new Polar(45, 50, 10, 10); System.out.println(" X1 " +p1.x1 +" New X1 " + p1.newX(45, 50 , 10 , 10) + " Y1 " +p1.y1 +" New Y1 " + p1.newY
-
OS 10.7 won't let me set my default printer
When I go to print, in most programs, it always selects the first lists the first printer in alphabetical order. I set default printer to Last Printer Used and it still brings up the first in line alphabetically. I tried setting default printer to La
-
23" HD cinema and firewire camera without g5
just wondering if it's at all possible to play video directly from the camera through firewire into the 23" HD display and not have it go through the computer? thanks.
-
Help please no luck recording vinyl thru line-in port on External USB Soundblaster Live 24bit
Help please! I have connected LP turntable (I am assured which has preamp inbuilt) to line-in port on S/Blaster external using lead inbuilt from?turntable with white/red RCA plugs with a line -in plug converter. Then connected external soundcard?to t