Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Forms 4.5 - Alerts.....

Re: Forms 4.5 - Alerts.....

From: Wojciech Błąd <blad_at_sz.onet.pl>
Date: Tue, 23 Nov 1999 19:39:48 +0100
Message-ID: <383ADF73.CAFB9921@sz.onet.pl>


Hello,

Maybe this function will help you. Before using this function define alert question.

FUNCTION QuestionBox (alert_txt VARCHAR2) RETURN BOOLEAN IS   al_id Alert;
  al_button Number;
BEGIN
  al_id := Find_Alert('QUESTION');
  Set_Alert_Property(al_id, alert_message_text, alert_txt );   al_button := Show_Alert( al_id );
  if al_button = ALERT_BUTTON1 then
    return TRUE;
  else
    return FALSE;
  end if;
END; Regards,
Wojtek

KRM wrote:

> Hello.
>
> I would like to display an alert to the user. I know how to create
> alerts and display them. However, I am unsure if the message text can
> be dynamic or not. I want to display a message telling the user how
> many records have been selected. I have this number in a global
> variable. Is there any way to put this into the alert so that the
> message that appears might be something like:
>
> You have selected X records.
>
> Where X is the global variable? The only thing I seem to be able to
> find about messages is that they have to be characters. It seems that
> I cannot display a message that would give the number of records. I
> know I can use the message procedure to display a message, but I want
> to use an alert button so I can have both an OK and a Cancel button.
> Is there a way to do this?
>
> Thanks!
> Kristen
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Tue Nov 23 1999 - 12:39:48 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US