Re: Menu items/Alerts... Please help

From: <rtproffitt_at_my-deja.com>
Date: Mon, 08 Nov 1999 16:46:38 GMT
Message-ID: <806upc$6rc$1_at_nnrp1.deja.com>


Another way is to use Alert along with a procedure or a procedure in a library.

The menu will end up being attached to a module. Declare the alerts in the module of interest. Or, create the Alerts and put them in an object library and subclass them to the module of interest. Next, write a procedure to handle the Show_Alert portion of code. You may place this in program units, or in a procedure libarary and attach the library to the menu. Call the procedure from the menu items PL/SQL trigger.

The menu item will call the procedure,
the procedure will call SHOW_ALERT which will look for "Alertname" and the runtime will find the Alert in the module which is running and contains the menu....Based on the results of the alert you can either exit or cancel.

(I am assuming you want some custom message, otherwise, earlier answer Exit_Form(ask_commit) is simple..)

Good Luck,
Robert Proffitt

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Mon Nov 08 1999 - 17:46:38 CET

Original text of this message