Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Simple forms 5.0 window problem
Hi all
I am trying to get grips with forms 5.0 and therefore doing some examples from albert lulushi book
I am stuck on a simple problems
I got three window.. customer , movie and rental
when I start the application I get the customer screen which has push button which call the other windows rental and movie
the code for the when button pressed tigger is Open_window('MOVIE') which call the following procedure
PROCEDURE Open_Window (window_name VARCHAR2) IS
window_id WINDOW; Window_Not_Found EXCEPTION;
BEGIN
window_id := FIND_WINDOW(window_name);
IF ID_NULL(window_id) THEN
RAISE Window_Not_Found;
END IF;
SHOW_WINDOW(window_id);
EXCEPTION
WHEN Window_Not_Found THEN
MESSAGE('Window '||window_name||' does not exist.');
RAISE FORM_TRIGGER_FAILURE;
WHEN OTHERS THEN
MESSAGE('Internal error occurred in Open_Window.');
RAISE FORM_TRIGGER_FAILURE;
END Open_Window;
The problem is that I never lose focus on the customer window the movie window appears behing the customer window. It wont even close if I do the following close_window ('Customer')
the code is
PROCEDURE Close_Window (window_name VARCHAR2) IS
window_id WINDOW; Window_Not_Found EXCEPTION;
BEGIN
window_id := FIND_WINDOW(window_name);
IF ID_NULL(window_id) THEN
RAISE Window_Not_Found;
END IF;
HIDE_WINDOW(window_id);
EXCEPTION
WHEN Window_Not_Found THEN
MESSAGE('Window '||window_name||' does not exist.');
RAISE FORM_TRIGGER_FAILURE;
WHEN OTHERS THEN
MESSAGE('Internal error occurred in Open_Window.');
RAISE FORM_TRIGGER_FAILURE;
END Close_Window;
what am I doing wrong , why Cant it place the focus on the movie window and place the customer window behing the movie window
any help apprecitaed
email me at mdesouza_at_yahoo.com
or michael.dsouza_at_matsushita-europe.com
--
Michael Dsouza
Analyst Programmer
United Kingdom
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Received on Wed Apr 28 1999 - 05:49:03 CDT
![]() |
![]() |