Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Issue JavaBeans with Forms

Stephane BaribeauJul 30 2013 — edited Aug 2 2013

Hello Everyone,

I would like to know if someone can tell me what i'm wrong.

I have tryed JavaBean AWTFileDialog to see how it's works inside a Forms.

When i click button, the FileDialog open, everything looks good.

I try to create a JavaBean with Eclipse.

My Code

package oracle.forms.fd;
import java.awt.Component;
public clas myJB extends Component {
      public string getTextSample() {
           String sText = "";
           sText = "foobar";
           return sText;
      }
}


I export to jar file in my oracle form directory.

edited my formweb.cfg file to add myJB jar file like i've done with AWTFileDialog.

but when i try in my form, the return value are null

my form code.

When-new-form-instance trigger

FBean.Register_Bean('CTRL.BEAN', 1, 'oracle.forms.fd.ADLog');

and i have a button to get the value like this

cV_co_retr := FBean.Invoke_Char('CTRL.BEAN', 1, 'getTextSample');

what i've done wrong?

I miss something?

thanks for help.

This post has been answered by Michael Ferrante-Oracle on Jul 31 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2013
Added on Jul 30 2013
6 comments
1,123 views