Re: User input in forms

From: <fgreene_at_hayes.com>
Date: 28 May 93 07:39:16 EDT
Message-ID: <7369.2c05c1a4_at_hayes.com>


In article <1993May28.060403.9681_at_uws.EDU.AU>, roleary_at_st.nepean.uws.edu.au (Rocqueforte OLeary) writes:
> G'day,
> This problem is best explained using an example:
> A user has just made some changes to the form. She presses Commit/Accept.
> What I want to happen now is for Oracle to display a pop-up screen which says
> "Press <key> to commit, any other key to ignore changes". I've got the pop-up
> Screen working (It'd be a problem if I couldn't do *THAT*), but what I can't
> get working is the user input i.e. How do I get the value the user enters ?
> Cheers,
> Rocky.
>
> P.S. thanks to all those that helped me with my update problem. Solution
> was to remove my SQL update code & just do a commit. Easy!
>
> --
> ,-_|\ *********** Rocqueforte Daemaen Alexander O'Leary ***********
> / \ B.App.Sci.(Comp),BPFH,Uni. Of Western Sydney,Nepean,Australia
> \_.--_/ E-Mail: roleary_at_st.nepean.uws.edu.au Work Phone: 047 360 773
> o "Boldly going where angels fear to tread."

Apparently, you already have a KEY-EXIT trigger defined at the form level that takes you to your verification pop-up window. Something like         

	KEY-EXIT
		GO_FIELD('verification');

Now, attached to the verification field, you need two triggers - one for the commit and one to abandon the changes. I am assuming that in either case you want to exit the form after you are done, so

	KEY-EXIT (attached to field 'verification');
		EXIT_FORM(DO_COMMIT);

	KEY-OTHERS (attached to field 'verification');
		EXIT_FORM(NO_VALIDATE);

 ----------------------------------------------------------------------------
 |      Frank Greene                  |          _/_/_/  _/_/_/             |
 |      DELPHI SYSTEMS, Inc.          |           _/_/    _/_/              |
 |      Telephone [615] 458-6032      |          _/_/    _/_/  _/_/_/       |
 |      Compuserve 74200,427          |         _/_/    _/_/    _/_/        |
 |      324 Ootsima Way               |        _/_/    _/_/    _/_/         |
 |      Loudon, TN 37774              |       _/_/_/  _/_/_/  _/_/_/        |
 ----------------------------------------------------------------------------
 |         Of course, any opinions or suggestions are strictly my own       |
 ----------------------------------------------------------------------------
Received on Fri May 28 1993 - 13:39:16 CEST

Original text of this message