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:

Multiple prices (1997) Multiple catalog databases and showcart (1997) [subtotal] and others (1997) Triggers under Windows NT (2001) RE: How much ram??? (1997) WebCatalog Technical Reference (1997) my price won't move (1997) Re[2]: Next X hits (1996) wierd crashes for multi-sendmails on NT (1997) Secure server question (1997) WebCat2: Found Items syntax, etc. (1997) Sort Order on a page search (1997) Creating a back button (1999) Semi-OT SSL IE problem (2005) Re:WebCatalog f2 Installation (1997) serial number generation (1997) This is a Test, sorry (1999) Resending - Please help (1999) Problem with imagemap variables (2006) Protect (1997)