Go to a custom menu, Find_Window and all the Normal State or Open_Form

Hello experts!

I'm under forms/States 11.1.2.2. My developer is on Windows XP.

The company's request is handled as a MDI with a menu. All open forms in the menu remain in the MDI.

In the menu, I try to use the integrated the FIND_WINDOW to determine if a window is already open. In this way, I can use the restore instead of opening a new. Here is the code of the menus the PL/SQL Editor:

DECLARE

wID WINDOW;

sName VARCHAR2 (15): = "WINDOW_MO";

BEGIN

wID: = FIND_WINDOW (sName);

IF ID_NULL (wID) THEN

OPEN_FORM ('INV116', ACTIVATE, SESSION);

ON THE OTHER

SET_WINDOW_PROPERTY (wID, WINDOW_STATE, NORMAL);

END IF;

END;

On the INV116 form, the only window is WINDOW_MO. If INV116 has already been opened, ID_NULL (wID) always returns TRUE.

Please tell me what I'm doing wrong here.

Thank you

Janice

Use FIND_FORM rather than FIND_WINDOW.

Kind regards

Zlatko

Tags: Oracle Development

Similar Questions

Maybe you are looking for