Using OCX controls in oracle forms 6
Hi,
I wanted to use the ocx control (filenet idmviewer control) in my forms. I imported the control using the ole importer. But i dont know how to reference it or so to say, how to use it to access my documents in the repository.
Any help would be very much appreciated.
Thanks
Hi,
Thanks for your info. I tried that. But i could not complete. It gives me compilation errors.
If you have any sample apps. can u forward it to me?
Balaji
Similar Messages
-
Third party ocx controls with oracle 6i forms
I would appreciate if anyone can get the solution on how to work with the ocx controls on the oracle forms.i am doing the same thing and when I embed the ocx control on the form during design time and then execute it then the ocx control is lost during run time as I have to insert the object on the oracle form during the run time again and then how do I call the functions of the ocx ?please guide me at the earliest.thank you.
Firstly upgrade to the latest patch of 6i, early version of 6i have a bug where OCX licence information is not correctly stored with the container, so in some cases the control will not instanciate at runtime.
To call functions in the control, the simplest thing to do is to use the OLE Importer (MENU: Program -> Import OLE Library Interfaces). Choose the class of your control and Forms will generate you a PL/SQL package to call all the functions in the control.
The rest is up to you - you have to know the API of the control you are using. -
OLE Controls in Oracle Forms 6
Env: Oracle 8xi, Forms 6, Attachmate Infoconnect OCX, Windows 2000
Hey All,
I am looking for general information on using Oracle Forms PL*SQL Library
for OLE2 to access and utilize a 3rd party Ole Control. I have a short-term
gig doing this and with the exception of how to utilize the properties and
methods of a 3rd Party OCX, I am a fish out of water when it comes to Oracle
development. I can embedded and utilize the control in VB and VC++ with no
problems but I need some help on how to embedded an OCX into an Oracle Form
and instantiate and use it through PL*SQL and the Oracle OLE2 Library. There
is no documentation on how to do this with Oracle from Attachmate. According
to Oracle you can use a 32 bit OCX in an Oracle form. I just need
a little help on how to do it.Any code snippets, book reccommedations, sites, or advice as to where to
look would be helpful.
Additionally, I am looking for anyone who has specific experience in using
Attachemate's Infoconnect OCX. Any info you could share would be
appreciated. Thanks for any help you can provide!
Vince
nullHi,
Thanks for your info. I tried that. But i could not complete. It gives me compilation errors.
If you have any sample apps. can u forward it to me?
Balaji -
Query about use activex control in Developer form
I'm an oracle developer and My name is milton datta.I cant' use activex control in forms.Pls. anybody would help me how to use activex control in developer forms.If possible provide me with some examples.
my email address is [email protected]Download the Oracle Forms demos and you'll see a sample.
Also read the documentation for Oracle Forms 6i the developer guide has a section about Active/X.
Just remember that they will not work once you take your Forms to the Web. So think twice before you use them. -
Active x controls in oracle forms 11g
I have read a post regarding, the embeding of active x controls in oracle forms. Can anybody explain it in detail, tat how it can be done on Oracle forms 11g. My database is also 11g. And please explain how to draw activex control on canvas, coz i cant find any icon related to it on tool palette. please help me...
Regards
VibinVibin,
Welcome to Oracle Forums!
Please acquaint yourself with the FAQ and forum etiquette if you have not already done so.
>
I have read a post regarding, the embeding of active x controls in oracle forms.
>
You must have read some post of a client-server version of Forms. It is always better to post the link that you are referring to
Can anybody explain it in detail, tat how it can be done on Oracle forms 11g. My database is also 11g. And please explain how to draw activex control on canvas, coz i cant find any icon related to it on tool palette. please help me...In web forms you use (Java) Beans.
Cheers, -
Books on Active X controls and Oracle Forms
Does anybody know of a good book that covers using Active X Controls within Oracle Forms.
Thanks
DeidraOracle Forms Developer and Reports Developer Release 6i: Guidelines for Building Applications on the software tab of the forms section on otn has a section about it.
-
How to use Java Script in Oracle Forms 10g
Hello,
Appreciate if anyone could help me using Java Script in Oracle Forms 10g?
Thanks
GMThank you for your reply. I was reading on the metalink that we could use the to call the java script from oracle Forms 10g (Doc ID 265863.1)
Example:
WEB.SHOW_DOCUMENT ('javascript:void(window.open("http://www.oracle.com","","location=no,toolbar=no,menubar=no,status=no,"));self.close()','_blank');
I tried it but it did not open the any window as it claims. Am I missing anything? Is there any IE related setting which I need to modify for the above to work?
Regards
GM -
How to use unicode fonts in Oracle forms 10g?
Hi I am working in forms 10g for quite a long time, the software that I have developed so far are all in English language. Now I have requirements to use Bengali Fonts in Forms 10g. I am facing difficulties doing that. Please reply with help. Thanks
Hasan Al MamunCheck this forum post (though that is for 6i, it would be of helpful for you)
How to use unicode fonts in Oracle forms 10g?
-Arun -
How to use BULK COLLECT in oracle forms
hi gurus,
I am using oracle forms
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProductionI wanna use bulk collect from database table lets say <employees>
while working on database level with collections and records it's working very well for me, but when I try to use that technique on oracle forms it hits me error
error 591 this feature is not supported in client side programmingI know I can use cursors to loop through the records of oracle tables ,
but I'm convenient while using collections and arrays
for example
Set Serveroutput On
Declare
Type Rec_T Is Record (
Empid Number ,
Empname Varchar2(100)
Type V_R Is Table Of Rec_T Index By Binary_Integer;
V_Array V_R;
Begin
Select Employee_Id , First_Name
Bulk Collect
Into V_Array
From Employees;
For Indx In V_Array.First..V_Array.Last Loop
Dbms_Output.Put_Line('employees id '||V_Array(Indx).Empid ||'and the name is '||V_Array(Indx).Empname);
End Loop;
End;I wanna use this same way on oracle forms , for certain purposes , please guide me how can I use ...
thanks...For information, you can use and populate a collection within the Forms application without using the BULK COLLECT
Francoisactually I want to work with arrays , index tables ,
like
record_type (variable , variable2);
type type_name <record_type> index by binary_integer
type_variable type_name;
and in main body of program
select something
bulk collect into type_variable
from any_table;
loop
type_variable(indx).variable , type_variable(indx).variable2;
end loop;
this is very useful for my logic on which I am working
like
type_variable(indx).variable || type_variable(indx-1);
if it's possible with cursors then how can I use cursor that can fullfill my this logic@Francois
if it's possible then how can i populate without using bulk collect?
thanks
and for others replies: if I can use stored procedures please give me any example..
thanks -
Help : Unable to use Java Beans in Oracle forms 6i
Hi ,
I have been trying to run few sample code to understand how to use Java beans in oracle forms 6i .But have been largely unsuccessfull.
It will be great if somebody can provide me with some simple form( and java code )which uses java beans concept to give some data to the java program and receive some data from it . Pls inform me about the settings that need to be done.
If you guys know it then pls take the pains of writing a simple form and java code.
i hope somebody will respond because your reply is very necesary for me to proceed.
U can email me the code > [email protected]
Thanks in advance.Thanks for your reply Francois.
Actually i am not facing problem understanding the programming technique.
I think the problem at my end is more of a cofiguration one.I am using forms version 6i
on oracle 8.
Every time i set the imlementation class property of the bean area it gives an error 13010 which translates to that "the class being mentioned is not extending the IView class".
The class i have written extends VBean so i am not sure why this error is occuring.
I think if oracle (correctly) finds the java class to use then i will be able to proceed.
Pls reply.
If you have some code that is working fine then pls send it to me.And also inform is some environment variables have to be set for its use. -
Using ocx controls on form6i (Crystal report 7 control)
I want to call reports developed in crystal report 7.0 (oracle as a backend)
I putted a ocx control on form and called now i want to call different reports from different push buttons.
vinodHi Ibai,
Thank you for your interest in CrystalWave. I tried sending this info to the email address you gave but got an undeliverable message.
The links are as follows:
(please use Internet Explorer while accessing the download link)
1. CrystalWave info: http://www.twbs.com/CrystalWave.html
2. CrystalWave download: http://www.twbs.com/cwrfiv2004.asp (You need to fill in your info and the download will start.)
Please do let me know if you are not able to access these links and I can setup a temporary link for you to download the program.
Thanks,
Gopal Viswanathan -
Hi,
I am trying to create a multirow tabsheet control using OCX. I am using "tabctl32.ocx" file to create the tab control.
Can anyone give me where to start with:
--I have registered the OCX control using REGSVR32.
--Created the container in forms
--Imported the associated methods and events using OLE importer.
Now what should I do?
Or Is there any way to create "Multirow tab sheets" using Form's deafault tab canvas
Thanks in advance for the help.
nullHelp me!!!
-
Use Host command in Oracle forms 6i
hi
all
i use Oracle forms 6i i run in a web and in that i have connect one server so,
i have to use Host Command and i have to fire this command
host (' net use \\windchillsvr\e\jyotionline /user:dwg_users dwg_users');
But it's Not Connect
My Forms in run in Web
so helpJavaBean does d othe job for you but it requires signing process; I used it when I was working on forms6i for our project.
I could use another approach that is the file type command executable which it stays in client's PC to do it and it does not requires signing at all since I am now working on the Java EE project for downloading and launching the third party tool in client's PC.
I plan to write a article for forms use, which could do all the heavy WebUtil can do, but not need to go thru the signing process. -
Using Numeric Keypad In Oracle Forms 6i
Dear All,
I am facing some problems when I am Working with Numeric Keypad on Oracle Forms 6i.
I have 10 Buttons and In Every Button Property I have defined the "Access Key".
e.g
Buttons | Property | Value
Button1 | Access Key | "1"
Button2 | Access Key | "2"
Button3 | Access Key | "3"
Button4 | Access Key | "4"
Button5 | Access Key | "5"
Button6 | Access Key | "6"
Button7 | Access Key | "7"
Button8 | Access Key | "8"
Button9 | Access Key | "9"
Button0 | Access Key | "0"Example : When I will Press Only "1" Using Numeric Keypad, Message Window will appear with the Message "You have Pressed 1..."
All Buttons are functioning Properly when I Pressing (One Key Stroke) 1,2,3,4,5,6,7,8,9,0 using Numeric KeyPad.
But I am not able to apply this Technique on "*" , "/" , "-" , "+" , "." , "Num Lock".
How Can I utilize these Characters(*,-,+,/,NumLock) in my application to perform a certain task using Single Key Stroke through Buttons or any other way in Oracle Forms 6i.
Note : We don't want to give Keyboard / Mouse to User. We have given a Numeric KeyPad to the User for a Certain Task.
Thanks in AdvanceIt works for me on 10g but the only pitfall is the " * ", the workaround is to use the " & " in the label next to the key you want.
for example:
Button* label &*
Button- label &-
Button/ label &/
Button+ label &+
Button. label &.Try it
Tony -
How to use java programe in oracle form
Hello Expert,
My Config is : -
Forms [32 Bit] Version 11.1.1.3.0 (Production)
Jdeveloper - 10.1.3
I want to use the java programe in form builder. I create the one java class in Jdeveloper -
package demo;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.net.UnknownHostException;
public class get_info{
public static void main(String[] args){
ch_add();
public static void ch_add()
InetAddress ip;
try {
ip = InetAddress.getLocalHost();
/*System.out.println("Current IP address : " + ip.getHostAddress()); */
NetworkInterface network = NetworkInterface.getByInetAddress(ip);
byte[] mac = network.getHardwareAddress();
/*System.out.print("Current MAC address : "); */
StringBuilder sb = new StringBuilder();
for (int i = 0; i < mac.length; i++)
sb.append(String.format("%02X%s", mac[i], (i < mac.length - 1) ? "-" : ""));
System.out.println(sb.toString());
} catch (UnknownHostException e) {
e.printStackTrace();
} catch (SocketException e){
e.printStackTrace();
and this into Formweb.cfg and default.env and also add into Form_class_path. After that i import this java into forms.
Code genertated -
PACKAGE BODY get_info IS
-- DO NOT EDIT THIS FILE - it is machine generated!
args JNI.ARGLIST;
-- Constructor for signature ()V
FUNCTION new RETURN ORA_JAVA.JOBJECT IS
BEGIN
args := NULL;
RETURN (JNI.NEW_OBJECT('demo/get_info', '()V', args));
END;
-- Method: main ([Ljava/lang/String;)V
PROCEDURE main(
a0 ORA_JAVA.JARRAY) IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_OBJECT_ARG(args, a0, '[Ljava/lang/String;');
JNI.CALL_VOID_METHOD(TRUE, NULL, 'demo/get_info', 'main', '([Ljava/lang/String;)V', args);
END;
-- Method: ch_add ()V
PROCEDURE ch_add IS
BEGIN
args := NULL;
JNI.CALL_VOID_METHOD(TRUE, NULL, 'demo/get_info', 'ch_add', '()V', args);
END;
-- Method: wait (J)V
PROCEDURE wait(
obj ORA_JAVA.JOBJECT,
a0 NUMBER) IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_LONG_ARG(args, a0);
JNI.CALL_VOID_METHOD(FALSE, obj, 'demo/get_info', 'wait', '(J)V', args);
END;
-- Method: wait ()V
PROCEDURE wait(
obj ORA_JAVA.JOBJECT) IS
BEGIN
args := NULL;
JNI.CALL_VOID_METHOD(FALSE, obj, 'demo/get_info', 'wait', '()V', args);
END;
-- Method: wait (JI)V
PROCEDURE wait(
obj ORA_JAVA.JOBJECT,
a0 NUMBER,
a1 NUMBER) IS
BEGIN
args := JNI.CREATE_ARG_LIST(2);
JNI.ADD_LONG_ARG(args, a0);
JNI.ADD_INT_ARG(args, a1);
JNI.CALL_VOID_METHOD(FALSE, obj, 'demo/get_info', 'wait', '(JI)V', args);
END;
-- Method: equals (Ljava/lang/Object;)Z
FUNCTION equals(
obj ORA_JAVA.JOBJECT,
a0 ORA_JAVA.JOBJECT) RETURN BOOLEAN IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_OBJECT_ARG(args, a0, 'java/lang/Object');
RETURN JNI.CALL_BOOLEAN_METHOD(FALSE, obj, 'demo/get_info', 'equals', '(Ljava/lang/Object;)Z', args);
END;
-- Method: toString ()Ljava/lang/String;
FUNCTION toString(
obj ORA_JAVA.JOBJECT) RETURN VARCHAR2 IS
BEGIN
args := NULL;
RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'demo/get_info', 'toString', '()Ljava/lang/String;', args);
END;
-- Method: hashCode ()I
FUNCTION hashCode(
obj ORA_JAVA.JOBJECT) RETURN NUMBER IS
BEGIN
args := NULL;
RETURN JNI.CALL_INT_METHOD(FALSE, obj, 'demo/get_info', 'hashCode', '()I', args);
END;
-- Method: getClass ()Ljava/lang/Class;
FUNCTION getClass(
obj ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT IS
BEGIN
args := NULL;
RETURN JNI.CALL_OBJECT_METHOD(FALSE, obj, 'demo/get_info', 'getClass', '()Ljava/lang/Class;', args);
END;
-- Method: notify ()V
PROCEDURE notify(
obj ORA_JAVA.JOBJECT) IS
BEGIN
args := NULL;
JNI.CALL_VOID_METHOD(FALSE, obj, 'demo/get_info', 'notify', '()V', args);
END;
-- Method: notifyAll ()V
PROCEDURE notifyAll(
obj ORA_JAVA.JOBJECT) IS
BEGIN
args := NULL;
JNI.CALL_VOID_METHOD(FALSE, obj, 'demo/get_info', 'notifyAll', '()V', args);
END;
BEGIN
NULL;
END;
Now i want to call the o/p of Java programe in oracle text item. Please help me. It's very urgent. I am not good in Java.Sir i use java importer.
PACKAGE BODY get_info IS
-- DO NOT EDIT THIS FILE - it is machine generated!
args JNI.ARGLIST;
-- Constructor for signature ()V
FUNCTION new RETURN ORA_JAVA.JOBJECT IS
BEGIN
args := NULL;
RETURN (JNI.NEW_OBJECT('demo/get_info', '()V', args));
END;
-- Method: main ([Ljava/lang/String;)V
PROCEDURE main(
a0 ORA_JAVA.JARRAY) IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_OBJECT_ARG(args, a0, '[Ljava/lang/String;');
JNI.CALL_VOID_METHOD(TRUE, NULL, 'demo/get_info', 'main', '([Ljava/lang/String;)V', args);
END;
-- Method: ch_add ()V
PROCEDURE ch_add IS
BEGIN
args := NULL;
JNI.CALL_VOID_METHOD(TRUE, NULL, 'demo/get_info', 'ch_add', '()V', args);
END;
-- Method: wait (J)V
PROCEDURE wait(
obj ORA_JAVA.JOBJECT,
a0 NUMBER) IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_LONG_ARG(args, a0);
JNI.CALL_VOID_METHOD(FALSE, obj, 'demo/get_info', 'wait', '(J)V', args);
END;
-- Method: wait ()V
PROCEDURE wait(
obj ORA_JAVA.JOBJECT) IS
BEGIN
args := NULL;
JNI.CALL_VOID_METHOD(FALSE, obj, 'demo/get_info', 'wait', '()V', args);
END;
-- Method: wait (JI)V
PROCEDURE wait(
obj ORA_JAVA.JOBJECT,
a0 NUMBER,
a1 NUMBER) IS
BEGIN
args := JNI.CREATE_ARG_LIST(2);
JNI.ADD_LONG_ARG(args, a0);
JNI.ADD_INT_ARG(args, a1);
JNI.CALL_VOID_METHOD(FALSE, obj, 'demo/get_info', 'wait', '(JI)V', args);
END;
-- Method: equals (Ljava/lang/Object;)Z
FUNCTION equals(
obj ORA_JAVA.JOBJECT,
a0 ORA_JAVA.JOBJECT) RETURN BOOLEAN IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_OBJECT_ARG(args, a0, 'java/lang/Object');
RETURN JNI.CALL_BOOLEAN_METHOD(FALSE, obj, 'demo/get_info', 'equals', '(Ljava/lang/Object;)Z', args);
END;
-- Method: toString ()Ljava/lang/String;
FUNCTION toString(
obj ORA_JAVA.JOBJECT) RETURN VARCHAR2 IS
BEGIN
args := NULL;
RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'demo/get_info', 'toString', '()Ljava/lang/String;', args);
END;
-- Method: hashCode ()I
FUNCTION hashCode(
obj ORA_JAVA.JOBJECT) RETURN NUMBER IS
BEGIN
args := NULL;
RETURN JNI.CALL_INT_METHOD(FALSE, obj, 'demo/get_info', 'hashCode', '()I', args);
END;
-- Method: getClass ()Ljava/lang/Class;
FUNCTION getClass(
obj ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT IS
BEGIN
args := NULL;
RETURN JNI.CALL_OBJECT_METHOD(FALSE, obj, 'demo/get_info', 'getClass', '()Ljava/lang/Class;', args);
END;
-- Method: notify ()V
PROCEDURE notify(
obj ORA_JAVA.JOBJECT) IS
BEGIN
args := NULL;
JNI.CALL_VOID_METHOD(FALSE, obj, 'demo/get_info', 'notify', '()V', args);
END;
-- Method: notifyAll ()V
PROCEDURE notifyAll(
obj ORA_JAVA.JOBJECT) IS
BEGIN
args := NULL;
JNI.CALL_VOID_METHOD(FALSE, obj, 'demo/get_info', 'notifyAll', '()V', args);
END;
BEGIN
NULL;
END;
I read both document which is given by you.
Basicaly i don't know how to call java program in form builder.
I wrote this code on When-button-pressed
DECLARE
jo ora_java.jobject;
rv varchar2(1500);
ex ora_java.jobject;
BEGIN
jo := get_info.new;
rv:=get_info.ch_add(jo );
EXCEPTION
WHEN ORA_JAVA.JAVA_ERROR then
message (' Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR );
message('');
WHEN ORA_JAVA.EXCEPTION_THROWN then
ex := ORA_JAVA.LAST_EXCEPTION;
message(' Unable to call out to Java ' ||Exception_.toString (ex ) );
message(' Unable to call out to Java ' ||Exception_.toString (ex ) );
END;
No error comes and no output comes. I want the client MAC ID. please guide me where i need to change the code.
Maybe you are looking for
-
Can't update Photoshop CC 14.0 to 14.2
The Adobe web site announces that Photoshop CC 14.2 is now available. I'm now using 14.0 which the Creative Cloud tells me is up-to-date. I quit and restarted Creative Cloud, but got the same message that my Photoshop 14.0 is up-to-date. Within Photo
-
I build a servlet applocation which access the data on cloud. But when i ran it it gave me the following error weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException: No resources currently available in po
-
This question was posted in response to the following article: http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7acca.h tml
-
This happens at least twice each time I close Firefox. I have done web searches and seen this issue posted, but found no solution.
-
Is there a way to store a movie purchased thru iTunes on cloud?
Is there a way to store purchased iTunes movies on Cloud?