Re: Forms 4.5 Menu Processing...

From: Tina Tran <tinat_at_sonica.com>
Date: 1997/10/03
Message-ID: <01bcd046$69e6e900$2aaeb6cc_at_dino>#1/1


Did you try:
enter;
if form_success then
  ....
end if;

Vijay Damodaran <vijayd_at_nortel.com> wrote in article <3431143E.17C0_at_nortel.com>...
> Hi Al,
>
> Thanks for input. But I am still having some problems. If I put the
> enter key in the Trigger executed by both the Toolbar button and Save
> menu item, and the when-validate-item trigger fails and raises an
> exception, the processing continues and invokes the next procedure.
>
> The Trigger executed by both the toolbar button and menu item is as
> follows:
> ----
> enter;
> DoSaveAE;
> ----
>
> The When-Validate-Item trigger on the item is as follows:
> ------
> IF NOT ValidateName(:block.item_name) THEN
> ShowMessage('Validation Failed.'); -- This is my function which
> -- displays the message.
> RAISE FORM_TRIGGER_FAILURE;
> END IF;
> -----
>
> In this case, if the even if ValidateName(:block.item_name) returns
> false and the message is displayed, the DoSaveAE procedure is called,
> even though I want the Trigger to fail and stop processing.
>
> Any input will be greatly appreciated. I hope I hape explained the
> problem correctly. Please let me know if u need any more info.
>
>
> Thanks,
>
> VJ.
> vijayd_at_nortel.com
> (972) 685-8150.
>
>
> QuadTwin wrote:
> >
> > vijayd_at_nortel.com wrote:
> >
> > > Hi,
> > >

          <snip> <snip>
> >
> > I think I can. First, what you need to do in this common trigger is
> > execute the builtin ENTER; as the first statement. This takes the
 place of
> > the user hitting the ENTER key. The reason for the difference is that
 the
> > WHEN-VALIDATE-ITEM trigger only fires when the "leave-the-item" event
> > occurs. This occurs when you click on another field or use the
 keyboard
> > enter or tab keys. When you use the mouse to select a menu item, the
 focus
> > is still in the item whose value was entered. When you click on a
 button,
> > the focus may optionally leave the button. The determination of
 whether
> > the toolbar button gains focus or not is a property of the button.
> > Typically you do not want to change focus to a toolbar button when it
 is
> > pressed. I suggest you change the MOUSE_NAVIGABLE property of the
 buttons
> > to FALSE. Then the toolbar button and the menu should operate the same
> > way. But you will have to have the ENTER statement in EVERY TRIGGER
> > associated with your toolbar buttons and menu selections.
> >
> > Hope this proves to be helpful and accurate,
> >
> > Al Lawson
> > Interactive Group, Inc.
> > www.interactive-group.com
> > lawsona_at_interactive-group.com
>
> --
>
  Received on Fri Oct 03 1997 - 00:00:00 CEST

Original text of this message