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 whennumfound<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 theother parameters being the same.Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/.
Associated Messages, from the most recent to the oldest:
>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 whennumfound<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 theother parameters being the same.Sincerely, Ken GromeWebDNA Solutionshttp://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:
Trouble with carts (2000)
Execute Applescript (1997)
Looping Search (2006)
[urgent] Phone number at SM (2006)
Webten + Webcat running smooth (1998)
Errata: WCS Newbie question (1997)
(1997)
using showpage and showcart commands (1996)
Sort Order on a page search (1997)
BBEdit WedDNA Codeless Language Module (2004)
WebCatalog-NT?'s (1996)
WebCatalog can't find database (1997)
Games (1998)
The IBC root beer has arrived! (1997)
[TaxableTotal] - not working with AOL and IE (1997)
formulas.db ?? (1998)
math/text variable limits per page (2001)
the dreaded unitShipCost (2003)
Country & Ship-to address & other fields ? (1997)
Moment of Thanks (1997)