[WebDNA] multi [sendmail] inside [search]
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 109289
interpreted = N
texte = Hi All,So I've built a timeclock for a customer to track employee hours online.He would like an email sent to him, whenever an employee exceeds 40 =hours.So I've written a script that is triggered each hour, and it does the =math to see when these limits are reached.All Ok so far.The problem is, WebDNA doesn't like using a [sendmail] tag inside of a =[search...][founditems] routine.I have it working to set these limits into a variable, and use the =[sendmail] outside of the [search] to send the variable,=20but it only works with the last item found in the database.Example, 3 employees just exceeded 40 hours, but the only email that is =sent is for the third (found) employee.Any ideas on how to use several [sendmails] all outside of the [search]?Thanks for any insight?Steve Braun=
Associated Messages, from the most recent to the oldest:
Hi All,So I've built a timeclock for a customer to track employee hours online.He would like an email sent to him, whenever an employee exceeds 40 =hours.So I've written a script that is triggered each hour, and it does the =math to see when these limits are reached.All Ok so far.The problem is, WebDNA doesn't like using a
[sendmail] tag inside of a =[search...]
[founditems] routine.I have it working to set these limits into a variable, and use the =
[sendmail] outside of the
[search] to send the variable,=20but it only works with the last item found in the database.Example, 3 employees just exceeded 40 hours, but the only email that is =sent is for the third (found) employee.Any ideas on how to use several [sendmails] all outside of the
[search]?Thanks for any insight?Steve Braun=
Stephen Braun
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[isfile] ? (1997)
Some Questions (1997)
2.0 Info (1997)
date math (2005)
Tab Charactor (1997)
RE: Price recalc based on quantity (1997)
New WebDNA Example from Olin -- (1998)
WebCatalog f2 Installation (1997)
PCS Emailer's role ? (1997)
Showing unopened cart (1997)
File Uploads... (1997)
Question about replacing words (1998)
[countWords]? (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
FYI: virus alert (1996)
WriteFile and returns... (2000)
[/application] error? (1997)
WCS Newbie question (1997)
Am on the list? (1997)
Field names beginning with Reg.. (2002)