Re: Programming the "Execute Query" key

From: Eric Givler <egivler_at_flash.net>
Date: Mon, 06 Nov 2000 19:12:21 GMT
Message-ID: <poDN5.7443$pq3.542027_at_news.flash.net>


yes, this is possible.
The buttons should be set to kb navigable/mouse navigable false.

Then, the execute-query button can read: do_key('execute_query'); and the cancel-query button can read: do_key('exit_form') (exit_form exits query mode). You may have to trap with some extra code in your key-exit
like:
if :system.current_mode = 'QUERY' then

   exit_form;
else

   exit_form(ask_commit);
end if;

<sacchow_at_my-deja.com> wrote in message news:8u6esc$830$1_at_nnrp1.deja.com...
> Programming the "Execute Query" key
> -------------------------------------
> Can someone please give ideas or solutions to the following
>
> I have an application built in Forms 6.0.
> I have query screen, which I get into using "ENTER_QUERY".
>
> At this point all my buttons/triggers are disabled.
> Oracle has the message
> Press F8 key to Execute Query, Control Q to Cancel.
>
> Here's where I need help
>
> 1)
> I need to have two buttons
> [Execute] and [Cancel]
> such that when the user presses Execute thatz pressing F8
> Cancel works for Control Q.
>
> I tried the buttons, giving the "When button pressed" triggers the
> "YES" property value for "Fire in Enter Query Mode"
>
> but it doesn't work.
>
> Is it possible to make it work.
> To rephrase it,
> ---------------
> I want the users to press my buttons instead of F8 or Control Q.
> ----------------------------------------------------------------
> 2) Can I trap the message "Press F8...."
> I tried "ON-MESSAGE" triggers but it didn't work.
>
> I would appreciate any suggestions or ideas.
>
> Thank you.
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Mon Nov 06 2000 - 20:12:21 CET

Original text of this message