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!

Can I get the window handle using the Get_Window_Property built in, when the forms application is running in a JVM on Windows

Mark SimsJun 12 2025

I am using Forms 14c and running the Forms application using FSAL. The frmsal.jar is hosted on a Windows OS with JDK17.0.15.

The forms application is using the built in function Get_Window_Property(FORMS_MDI_WINDOW,WINDOW_HANDLE), but it always returns 0.

The documentation for the built-in is states…

“WINDOW_HANDLE Returns the a unique internal VARCHAR2 constant that is used to refer to objects. Returns the VARCHAR2 value '0' if the platform is not Microsoft Windows. ”

The application is running in a JVM on a Windows OS but the Window is a Java window ( SunAwtFrame ) not a Microsoft window, hence 0 being returned.

Because Oracle forms are built for running with FSAL then I believe the scenario above is now the expected standard. Does this mean that the Get_Window_Property(FORMS_MDI_WINDOW,WINDOW_HANDLE) built in is obsolete, or is there an additional configuration/method that needs to be in place for it to function when running on a Windows OS (via JVM)?

Comments
Post Details
Added on Jun 12 2025
2 comments
148 views