Re: Forms 4.5 triggers

From: kpatel <kpatel_at_gmu.edu>
Date: 1995/08/05
Message-ID: <3vugi5$47n_at_portal.gmu.edu>#1/1


I thaught I had replied to this post.

Here it goes again.

  1. Attach the LOV to the field in the item property sheet.
  2. Define a KEY-LISTVAL trigger on the field.
  3. KEY-LISTVAL DECLARE item_selected BOOLEAN; BEGIN item_selected := SHOW_LOV; IF item_selected THEN << Enable/Disable push buttons. >> ELSE << Do processing when no item selected from the list. >> END;
Above trigger will work fine when the item has an LOV attached to it. However, if there is no LOV attached to the field, pass the name of the LOV to the SHOW_LOV( 'my_lov') function.

Hope this helps.

Kalpesh S. Patel

R.O.W. Sciences, Inc.

301-294-5590 (T)
301-294-5401 (F)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Standard Discalaimer apply.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




Thomas_Kuchenbuch_at_sz.maus.de (Thomas Kuchenbuch) wrote:
>
> Hi,
>
> is there any way to execute some PL/SQL-code whenever a value is selected
> from a LOV and inserted into a text item?
>
> WHEN-VALIDATE-ITEM trigger seems too late because I'd like to
> enable/disable some pushbuttons depending on the selected value _before_
> the user leaves the current text item.
>
> Thanks for any advice!
>
> Thomas
> --
> --------------------------------------------------------------------------
> Thomas Kuchenbuch eMail : thomas_kuchenbuch_at_sz.maus.de
> D-38106 Braunschweig
> Germany _no mails > 16kB,
> 64kB/day_
> --------------------------------------------------------------------------
Received on Sat Aug 05 1995 - 00:00:00 CEST

Original text of this message