Home » Developer & Programmer » Forms » Creating alert in forms 9i
icon9.gif  Creating alert in forms 9i [message #129312] Sat, 23 July 2005 13:41 Go to next message
amphrodite
Messages: 21
Registered: July 2005
Junior Member

Hi everyone,

Is it possible to create alert with sound in forms?Something like the alert in yahoo messenger?

Thanks Razz
Re: Creating alert in forms 9i [message #129369 is a reply to message #129312] Sun, 24 July 2005 20:37 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Look at READ_SOUND_FILE and PLAY_SOUND.

/* Example 1: This procedure call (attached to a menu item)
** plays a sound object from the specified sound item:
*/
   GO_ITEM('about.abc_inc');
   PLAY_SOUND('about.abc_inc');

/* Example 2: These procedure calls (attached to a
** When-Button-Pressed trigger) read a sound object from the
** file system and play it. Note: since an item must have focus
** in order to play a sound, the trigger code includes a call
** to the built-in procedure GO_ITEM:
*/
BEGIN
   IF :clerks.last_name = 'BARNES' THEN
      GO_ITEM ('orders.filled_by');
      READ_SOUND_FILE ('t:\orders\clerk\barnes.wav', 'wave',
                       'orders.filled_by');
      PLAY_SOUND ('orders.filled_by');
   END IF;
END;


David
Previous Topic: ORA-12203: Unable to connect to destination
Next Topic: Check database name
Goto Forum:
  


Current Time: Fri Sep 20 10:19:08 CDT 2024