OraFormsJavaContainerAction allows you to call a function of the Java object that is hosted in the Java container on the current window. Different parameters for the function call can be set by preceding OraFormsSet{Type} calls. For each parameter, EVENT_ARGNAME and EVENT_ARGVALUE must be set. See the sample below.
OraForms.bdh
OraFormsJavaContainerAction( in sName : string, in sAction : string ) : boolean;
Parameter | Description |
---|---|
sName | Name of the Java container that is hosted in the current application. |
sAction | The name of the function that should be called. |
dcltrans transaction TMain var sValue : string; begin OraFormsSetConnectMode(ORA_SOCKET_CONNECTION); // Connect - with connection properties OraFormsSetInt( "INITIAL_VERSION", 608); OraFormsSetPoint( "INITIAL_RESOLUTION", 96, 96); OraFormsSetPoint( "INITIAL_DISP_SIZE", 1024, 768); OraFormsSetInt( "INITIAL_COLOR_DEPTH", 256); OraFormsSetString( "FONT_NAME" , "Dialog" ); OraFormsSetPoint( "INITIAL_SCALE_INFO", 8, 18); OraFormsSetBoolean( "WINSYS_REQUIREDVA_LIST", false); OraFormsConnect( "server module=Person3.fmx userid= useSDI=yes record=names"); OraFormsSetWindow( "Logon"); OraFormsLogon( "user", "password", "orcl_server"); OraFormsSetString( "EVENT_ARGNAME", "FileName"); OraFormsSetString( "EVENT_ARGVALUE", "test.txt"); OraFormsJavaContainerAction( "JAVA_UPLOAD", "UploadFile"); OraFormsMenuItem( "WINDOW1", "Action::Exit"); end TMain;