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:

IIS4 (1998) decrypt and summ problems (1999) show all problem (1997) Closing Databases (take 2) (1998) PSC recommends what date format yr 2000??? (1997) Emailer port change (1997) Formating found categories (1997) WebMerchant 2.1.2 (1998) Here's an example of an applet in a tpl (1997) WebCatalog Hosting (1996) Hey .. so when are you guys (2004) WebCat editing, SiteGuard & SiteEdit (1997) Relay link (2002) [delete] problem (2002) Video Performance Rights (1998) PCS Frames (1997) Cookie Crumble (1998) grep / [middle] help (2003) wild question (1998) b12 cannot limit records returned and more. (1997)