Working with Java Oracle Forms
To work with the JavaOracle Forms Test application:
1. | Start the Java Oracle Forms Test application. |
2. | Capture and create a Java Scene with Java controls (for example, JavaButton, JavaComboBox, JavaMenu, JavaTextBox). |
3. | Start the Real-Time Client and Monitor and navigate to the Java control’s property. |
4. | Change the value of the Oracle Form Input to True. |
5. | Select the scene and in the Available Functions drop-down list, select Activate. |
After activation, the scene's name and Java controls appear in green:
6. | Select the JavaTextBox and in the Properties tab, change the property Text to Test1. |
7. | Press Enter on your keyboard. |
In the working application, the selected TextBox’s value changes to Test1.
8. | To use a function in Monitor, enter the required parameter values, and then click Invoke. For example, to simulate a click in the source Java control, select the Component Click function from JavaButton control’s functions. |
9. | To use a Run Oracle Java script function in Monitor, enter the required parameter code. |
For example, to get the name of the Selected Item of the JavaComboBox control, under Available Functions, select the Run Oracle Java script function and set the code: script.result = component.getSelectedItem() ; and then click Invoke.
10. | The Selected Item Value appears in the Returned value. |