List:General Discussion« Previous MessageNext Message »
From:Roger Baklund Date:January 6 2005 12:25pm
Subject:Re: adding automatic alert
View as plain text  
Aji Andri wrote:
> Hi all,
> I'm make an inventory goods database, in one of my
> table I need to make an automatic alert when my stock
> reach it's limit (say for tires it's limit is 4), can
> I make an automatic alert for it so when it reach it
> limit I can have an alert may be a beep  ?

This is a typical task for the programming language/tool you are using 
to create your application. What you ask may look a bit like a task for 
a trigger, but triggers work serverside, and I assume you want the beep 
on the client. I really think you would be better of just using a simple 
script, running every 30 minutes or so. Something like this (meta code):

cnt = select stock from goods where goodstype='tires'
if (cnt < 5):
    beep()
    send_email('supervisor@company','Out of tires!')

(This script will of course keep beeping/sending emails every 30 minutes 
until you stop the script or increase the registered stock above the 
limit... )

-- 
Roger

Thread
first time accessingGerald Preston4 Jan
RE: first time accessingTom Crimmins4 Jan
  • RE: first time accessingGerald Preston6 Jan
    • adding automatic alertAji Andri6 Jan
      • Re: adding automatic alertRoger Baklund6 Jan
        • Re: adding automatic alertAlec.Cawley6 Jan
        • Re: adding automatic alertAji Andri8 Jan
      • Re: adding automatic alertRhino6 Jan
        • query problem in num_rowAji Andri8 Feb
          • Re: query problem in num_rowLigaya Turmelle9 Feb
RE: first time accessingSST - Adelaide)4 Jan
RE: first time accessingTom Crimmins6 Jan
  • RE: first time accessingGerald Preston6 Jan
RE: first time accessingTom Crimmins6 Jan
  • RE: first time accessingGerald Preston6 Jan
  • RE: first time accessingGerald Preston6 Jan