Conditional searching & displaying

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14807
interpreted = N
texte = I'm having a little trouble with constructing the logic for the following scenario:Problem 1: I'm creating a search 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 only using only the previous arguement for the Specialty field and display those results 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)
I'm having a little trouble with constructing the logic for the following scenario:Problem 1: I'm creating a search 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 only using only the previous arguement for the Specialty field and display those results 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:

$Quit, $CloseDatabase corrections (1997) [TaxableTotal] - not working with AOL and IE (1997) Error Page? (1997) range vs greater than/less than (2003) Re[3]: Problem with new formvariables (2000) Banners (1997) [WebDNA] WebDNA receiving numerous signal SIGSEGV then crashing (2016) Another Flash Question (2000) Unique SKU Numbers (2000) dynamic PDF no longer working? (2004) WC2b15 File Corruption (1997) Searching/sorting dates (1997) Search logic? (1998) Rhapsody? (1997) Random Number Generator works for Ranges of Numbers (1997) [WebDNA] [WSC] WebDNA Development Summit (2014) [OT] (waaaay OT) (2004) normal users.db calls ... (1998) WCS Newbie question (1997) formulas.db (1999)