Re: Exclude by date - multiple
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12030
interpreted = N
texte = >Can I nest the search in order to do multiple greater thans on the>same field (first search would be [date], second would be user-supplied??Yes, but you can also do a single search with multiple [founditems]contexts and [showif]'s to do the same thing. If you send a schematic ofwhat you're trying to do, we can try to help figure out a method that willwork for you ... :)>Is there a way to string together some math that would say something>like restrict my returns to only those records that have an ending date of>[date] or a user supplied date value - whichever is greater?You don't need any [math], just put this on the page that receives theinput date from your users:
... then put this on your results.tmpl page ...[searchdb=XXX.db&eqendingDatadata=[date]&grendingDatedata=[inputDate]&endingdatetype=date &inputDatetype=date][founditems][/founditems][/search]You'll have to fill in the rest yourself, but this will get you started ... :)Sincerely, Ken GromeWebDNA Solutions
Associated Messages, from the most recent to the oldest:
>Can I nest the search in order to do multiple greater thans on the>same field (first search would be
[date], second would be user-supplied??Yes, but you can also do a single search with multiple
[founditems]contexts and
[showif]'s to do the same thing. If you send a schematic ofwhat you're trying to do, we can try to help figure out a method that willwork for you ... :)>Is there a way to string together some math that would say something>like restrict my returns to only those records that have an ending date of>
[date] or a user supplied date value - whichever is greater?You don't need any
[math], just put this on the page that receives theinput date from your users:
... then put this on your results.tmpl page ...[searchdb=XXX.db&eqendingDatadata=
[date]&grendingDatedata=[inputDate]&endingdatetype=date &inputDatetype=date]
[founditems][/founditems][/search]You'll have to fill in the rest yourself, but this will get you started ... :)Sincerely, Ken GromeWebDNA Solutions
Kenneth Grome
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:
why won't this work, please tell me??? (2001)
WebDelivery downloads alias, not original ? (1997)
GD Scumbucket Spammer (2004)
find with exceptions (1997)
WebCat hosting providers? (1997)
Not reading code (1997)
Docs error: encrypting templates... (2000)
Carraige returns [sendmail] (2004)
Search results templates (1996)
Database formats (2003)
Question re: FlushDatabases (1997)
WebCat2b15MacPlugin - [protect] (1997)
How far do [showif]s go? (1997)
OT: Limit on # of Pulldown entries (1997)
webcat2b12 CGI -- Date comparisons (1997)
Nested vs conditional (1997)
Making Thumbnail Graphics (1997)
Separate SSL Server (1997)
Problem with my orders (1998)
[WebDNA] High-profile WebDNA sites? (2008)