Re: Conditional searching & displaying
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14815
interpreted = N
texte = >Put the founditems context for this part in a showif that's true when>numfound<2.M: I'll try it, I hadn't thought about using [showif] to control the[Founditems] context.>Showif based on what? The number of records found?M: Yes based up on [numfound]>>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 ...M: Yeah, my description's a little obtuse so here's an illustration of aresults page I'd like to see if someone searched by Specialty and City (inthis case, Cardiologists in the city of La Jolla) and the returned numfoundis less than 2.Your search found the following:Dr. Smith <---------- this is the record thatCardiologist met both search criteriaLa JollaAdditionally, you may wish to review <---- the [showif] errorthese other Cardiologists practicing messagein neighboring areas:Dr. Jones <--------- the results from the secondary search whichCardiologist searched only by SpecialtySan Diego (not by Specialty *and* City)Dr. JohnsonCardiologistPacific Beach>>Problem 2:>You could use the summary parameter in a separate search with all the>other parameters being the same.>M: I was trying to figure out how to use Summary for this but according tothe docs the Summary parameter will remove all but the first record infound list. What I'd like to do is display the entire list of found itemsbut only display the city field once per original instance within the groupof found items. How's that for obtuse??thanks-marty
Associated Messages, from the most recent to the oldest:
>Put the founditems context for this part in a showif that's true when>numfound<2.M: I'll try it, I hadn't thought about using
[showif] to control the
[founditems] context.>Showif based on what? The number of records found?M: Yes based up on [numfound]>>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 ...M: Yeah, my description's a little obtuse so here's an illustration of aresults page I'd like to see if someone searched by Specialty and City (inthis case, Cardiologists in the city of La Jolla) and the returned numfoundis less than 2.Your search found the following:Dr. Smith <---------- this is the record thatCardiologist met both search criteriaLa JollaAdditionally, you may wish to review <---- the
[showif] errorthese other Cardiologists practicing messagein neighboring areas:Dr. Jones <--------- the results from the secondary search whichCardiologist searched only by SpecialtySan Diego (not by Specialty *and* City)Dr. JohnsonCardiologistPacific Beach>>Problem 2:>You could use the summary parameter in a separate search with all the>other parameters being the same.>M: I was trying to figure out how to use Summary for this but according tothe docs the Summary parameter will remove all but the first record infound list. What I'd like to do is display the entire list of found itemsbut only display the city field once per original instance within the groupof found items. How's that for obtuse??thanks-marty
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:
Looking for a designer/coder (2005)
Searching (2000)
international time (1997)
Sizes/Colors Options (2006)
showif and cart (1997)
typhoon vs. webcatalog (1997)
Deleting Orders (1997)
YACBQ.....(Yet another checkbox question) (2000)
Re:Password Authentication - request example (1998)
Sandbox DB permissions (2005)
Most Recent version of WebDNA For RH ES (2006)
Search design (1997)
Count regular expressions in a file (2007)
[index] (1997)
unsubscribe (1997)
WCS Newbie question (1997)
RE: too many nested [xxx] (1997)
Speed Optimization - Mac (1997)
TaxTotal Problem (1997)
Aaron kant add (or whatever it was) (2000)