Re: Conditional searching & displaying

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14812
interpreted = N
texte = >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 ...Put the founditems context for this part in a showif that's true when numfound<2.>B. Use a [Showif] statement to display some error messageShowif based on what? The number of records found?>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.I'm not following you ...>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 2 > >San Diego >Doc 3 >Doc 5 > >Pacific Beach >Doc 4 > >How do I write a [showif] (hideif ?) statement that only displays that >field once for a given set of records.You could use the summary parameter in a separate search with all the other parameters being the same.Sincerely, Ken Grome WebDNA Solutions http://www.smithmicro.com/webdnasolutions/. 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)
>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 ...Put the founditems context for this part in a showif that's true when numfound<2.>B. Use a [showif] statement to display some error messageShowif based on what? The number of records found?>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.I'm not following you ...>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 2 > >San Diego >Doc 3 >Doc 5 > >Pacific Beach >Doc 4 > >How do I write a [showif] (hideif ?) statement that only displays that >field once for a given set of records.You could use the summary parameter in a separate search with all the other parameters being the same.Sincerely, Ken Grome WebDNA Solutions http://www.smithmicro.com/webdnasolutions/. Kenneth Grome

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:

Tea Room trouble (1997) show all problem (1997) UN-WANTED character conversion (1999) Multi-processor Mac info ... (1997) [WriteFile] problems (1997) duplicate items in cart (1998) Help! WebCat2 bug (1997) creator code (1997) Cookies and WebCat?? (1999) Where is Orders.db appended? (2000) db access problem after switching to SSL (2001) Problem displaying search result (1997) Max Record length restated as maybe bug (1997) Gettting IPAddress (2001) [OT] Mac Utility Required (2000) [WAY OFF TOPIC] anybody live in Kansas? (2003) Database Connectivity (1999) ShowNext example for GeneralStore (1997) No more misunderstanding ... yay! :) (1997) listing certain items in the orderfile (2002)