Exclude by date - multiple

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11993
interpreted = N
texte = Hey WebCat brainiards... I've got a problem thats got me stumped (not a difficult task by the way). I have a db of events which have starting and ending dates. In my search form I have an option to require that the search limit its results to those that are happening during a client-supplied date range (in addition to limiting the search by event type, keyword etc.). Ok, simple enough everything works so far... The problem I have is that I'd also like the search to require that the records ALWAYS have an ending date AFTER todays date. And therein lies my problem, that is having multiple required searches on the same field with multiple values - Here I think my problem code will better demonstrate: ----------------------------
Specify Date Range

Only list events between the following dates:
Start Date
ie. 1/27/1997
End Date
ie. 2/27/1997

-----------------------------If I add the line: and I select the option the limit the date range then no records are ever returned (of course). So any ideas on how to exclude old events (and still aloow date-range limiting) without this code? I can't use a [showif] in the results template because I'd like my numfound statement to match the actual records being displayed -I might be wrong on this but I believe numfound will show the total number of matchs even if data is hidden by showif/hideif statements. Is that correct?thanks for the help -marty ____________________________________ | Marty Schmid | | -Artwerks- | | Design/Advertising/Web Publishing | | | | T. 619.274.5029 | | F. 619.274.5656 | | e-mail: marty@artwerks.com | |____________________________________| 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)
Hey WebCat brainiards... I've got a problem thats got me stumped (not a difficult task by the way). I have a db of events which have starting and ending dates. In my search form I have an option to require that the search limit its results to those that are happening during a client-supplied date range (in addition to limiting the search by event type, keyword etc.). Ok, simple enough everything works so far... The problem I have is that I'd also like the search to require that the records ALWAYS have an ending date AFTER todays date. And therein lies my problem, that is having multiple required searches on the same field with multiple values - Here I think my problem code will better demonstrate: ----------------------------
[date]> Specify Date Range

Only list events between the following dates:
Start Date
ie. 1/27/1997
End Date
ie. 2/27/1997

-----------------------------If I add the line: [date]> and I select the option the limit the date range then no records are ever returned (of course). So any ideas on how to exclude old events (and still aloow date-range limiting) without this code? I can't use a [showif] in the results template because I'd like my numfound statement to match the actual records being displayed -I might be wrong on this but I believe numfound will show the total number of matchs even if data is hidden by showif/hideif statements. Is that correct?thanks for the help -marty ____________________________________ | Marty Schmid | | -Artwerks- | | Design/Advertising/Web Publishing | | | | T. 619.274.5029 | | F. 619.274.5656 | | e-mail: marty@artwerks.com | |____________________________________| Marty Schmid

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:

WebTen Type 2 Crash on start (2000) Detecting the screen size (2003) [convertChars] and in a textarea on a form (1998) Examples of cross-selling with WebCatalog? (1998) Frames and WebCat (1997) PCS Frames (1997) international time (1997) osx or redhat and / or other (2005) No spaces allowed in text variable names ... ? (2002) Sort Order on a page search (1997) RE: Writefile outside WebSTAR hierarchy? (1997) Error:Too many nested [xxx] contexts (1997) RE: [WebDNA] TCPConnect/cURL alternative for windows? (2010) [shownext max=?] armed (1997) Date Sorting (1997) NT vs Mac (1997) Re:Emailer Set Up (1997) 3+ Levels of Navigation (2006) Encryption Question (2006) WCS Newbie question (1997)