Home » Developer & Programmer » Forms » handling beans
handling beans [message #109419] Thu, 24 February 2005 10:13 Go to next message
youtz
Messages: 3
Registered: February 2005
Location: Switzelrand
Junior Member
Hello,
I'm new at integrating java beans in oracle forms (10g). And also new to java Embarassed

Here is what I'm trying to do :

Refine a list (query) each time a keyboard key is pressed in a text field (Bean area in my case).

Here is how I did it and the problems I have :

I created two Bean Area (1 for test purpose).

In when-new-form-instance :

------------------------------------------------
FBean.register_bean('RESEARCH',1,'java.awt.TextArea');
FBean.Enable_Event('RESEARCH',1,'keyListener', true);

FBean.register_bean('RESEARCH2',1,'java.awt.TextField');
FBean.Enable_Event('RESEARCH2',1,'keyListener', true);
-------------------------------------------------

then I created a WHEN-CUSTOM-ITEM-EVENT for each bean area.

-------------------------------------------------
...
...
event_name:=:SYSTEM.Custom_Item_Event;
if event_name = 'KEY_RELEASED' then
text:=FBean.Invoke_char('RESEARCH',1,'getText','');
MAJ_LIST(text);
end if;
...
...
-------------------------------------------------

Here are my questions (problems) :

1) It works fine with the java.awt.TextArea but not with java.awt.TextField, why ? any other bean that I could (should) use ?

2) Is it possible to get the java.awt.TextArea without the scrollbars ?

3) Is there a better way to do what I want to do ?

thanks very much and best regards,
Olivier.

P.S I can send my FMB if needed (10g).
Re: handling beans [message #109449 is a reply to message #109419] Thu, 24 February 2005 14:30 Go to previous message
kashif
Messages: 11
Registered: July 2001
Junior Member
sorry i can't help you youtz at this time....I did lot of work in EJB's but never use beans in developer..... can you please help me in geting start using beans in developer 2000..
if it is possilbe please send a simple form (having a bean) with a little explation about how it work...

thanks,
Previous Topic: Graphs
Next Topic: can we save formating(bold,underline,italic) info along with data in tables ?
Goto Forum:
  


Current Time: Mon Sep 16 16:37:35 CDT 2024