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:

WebCommerce: Folder organization ? (1997) Need relative path explanation (1997) WebCat hosting providers? (1997) Sort Issue? (2000) Quit revisited (1997) [WriteFile] problems (1997) WebCatalog NT beta 18 problem (1997) wc 2 pro users - sites, quotes wanted (1997) webcatalog 2.1.3 ACGI Weirdness? (1998) New public beta available (1997) Size limit for tmpl editor ? (1997) Simple Page (2000) RE: Re:Signal Raised (1997) [listfiles] with max? (2000) WebCat2 Append problem (B14Macacgi) (1997) WebCat2: multiple currency support (1997) docs for WebCatalog2 (1997) RE: WebCat cannot handle compatible search parameters? (1997) [WebDNA] Snow Leoopard and v7 (2011) Webstar 1.3.1 PPC (1997)