Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Simple forms 5.0 window problem

Re: Simple forms 5.0 window problem

From: Al Ruiz <arruiz_at_flash.net>
Date: Thu, 06 May 1999 02:07:19 GMT
Message-ID: <3730FAF8.46CC5F43@flash.net>


Open_form leaves the current form accesible but replaces the current menu with the called form's menu. You can naviagte to the movie form by adding th go_form() built in to your procedure Open_window.

Good luck

Al Ruiz

mikey wrote:

> 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 May 05 1999 - 21:07:19 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US