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 of what you're trying to do, we can try to help figure out a method that will work 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 the input date from your users:
... then put this on your results.tmpl page ...[search db=XXX.db&eqendingDatadata=[date]&grendingDatedata=[inputDate]&endingdatetype=da te &inputDatetype=date] [founditems][/founditems] [/search]You'll have to fill in the rest yourself, but this will get you started ... :)Sincerely, Ken Grome WebDNA Solutions Associated Messages, from the most recent to the oldest:

    
  1. Re: Exclude by date - multiple (Kenneth Grome 1997)
  2. Re: Exclude by date - multiple (Marty Schmid 1997)
  3. Re: Exclude by date - multiple (grichter@panavise.com (Gary Richter) 1997)
  4. Exclude by date - multiple (Marty Schmid 1997)
>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 of what you're trying to do, we can try to help figure out a method that will work 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 the input date from your users:
... then put this on your results.tmpl page ...[search db=XXX.db&eqendingDatadata=[date]&grendingDatedata=[inputDate]&endingdatetype=da te &inputDatetype=date] [founditems][/founditems] [/search]You'll have to fill in the rest yourself, but this will get you started ... :)Sincerely, Ken Grome WebDNA 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:

SSL do I need it?? (1998) Where is f2? (1997) Error Messages Returned to User (1997) Width & Height (1998) Date or time comparisons have bugs ... (1998) [input] [/input] (1997) RequiredFields notes ... (1997) Spreadsheet Interface. (1998) Snake Bites (1997) killing white space (1998) problems with 2 tags (1997) foreign character sets and conversions (1998) fieldType=num (1997) Sendmail truncation in Eudora Clients (1998) Listserver problem (1997) Bug Report, maybe (1997) Text data with spaces in them... (1997) Windows-based Code Editor (2002) Sorting by date (1997) [WebDNA] Fwd: Creating Dynamic Content based on your subdomains (2020)