Conditional searching & displaying

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14810
interpreted = N
texte = (apologies if this is a dup. My first attempt didn't seem to find its way through the ether...)I'm having a little trouble with constructing the logic for the following scenario:Problem 1: I'm creating a search form (using pulldowns ) that looks for doctors by specialty and city. However if the [numfound] is less than 2 then I'd like to: A. Display whatever records did match the criteria, and B. Use a [Showif] statement to display some error message C. Do a second search based upon the same [showif] criteria that only uses the previous arguement for the Specialty field (ignoring the City arguement) and displays those results in the same results.tmpl below the error message.How do I pass the search arguements from the Specialty search into a second search while ignoring the search by City arguement?Problem 2: In the results page I'd like display the city field only once for each set of doctors in that city that met the above search criteria, for example:La Jolla Doc 1 Doc 2San Diego Doc 3 Doc 5Pacific Beach Doc 4How do I write a [showif] (hideif ?) statement that only displays that field once for a given set of records.TIA ____________________________________ | 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: Conditional searching & displaying (Kenneth Grome 1997)
  2. Re: Conditional searching & displaying (Marty Schmid 1997)
  3. Re: Conditional searching & displaying (Kenneth Grome 1997)
  4. Conditional searching & displaying (Marty Schmid 1997)
  5. Conditional searching & displaying (Marty Schmid 1997)
(apologies if this is a dup. My first attempt didn't seem to find its way through the ether...)I'm having a little trouble with constructing the logic for the following scenario:Problem 1: I'm creating a search form (using pulldowns ) that looks for doctors by specialty and city. However if the [numfound] is less than 2 then I'd like to: A. Display whatever records did match the criteria, and B. Use a [showif] statement to display some error message C. Do a second search based upon the same [showif] criteria that only uses the previous arguement for the Specialty field (ignoring the City arguement) and displays those results in the same results.tmpl below the error message.How do I pass the search arguements from the Specialty search into a second search while ignoring the search by City arguement?Problem 2: In the results page I'd like display the city field only once for each set of doctors in that city that met the above search criteria, for example:La Jolla Doc 1 Doc 2San Diego Doc 3 Doc 5Pacific Beach Doc 4How do I write a [showif] (hideif ?) statement that only displays that field once for a given set of records.TIA ____________________________________ | 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:

Groups doesn't work (1997) Help name our technology! (1997) sorting question... (2001) Plugin or CGI or both (1997) Re:2nd WebCatalog2 Feature Request (1996) Grep on Emails w/ Multiple Dots (2004) ShowNext example for GeneralStore (1997) Thanks ! (1997) Using Plug-In while running 1.6.1 (1997) RE: Adding headers to email (1997) Frames and WebCat (1997) [writefile] (1997) WebDNA dying or ... ? (2005) SpiderBotLock! (2003) Busted at the Border (1998) unable to launch acgi in WebCat (1997) [numfound] within summ=t (2000) Include Files (1998) New public beta available (1997) Solution to truncated email problem! (1998)