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.