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:
Conditional searching & displaying (1997)
Unzip (2005)
[sendmail] and [formvariables] (1997)
[HIDEIF] inside [FOUNDITEM] (1997)
Email notification to one of multiple vendors ? (1997)
using showpage and showcart commands (1996)
emailer setup (1997)
webcat2b12 CGI -- Date comparisons (1997)
Thanks Grant (1997)
Re[2]: Next X hits (1996)
Mail Server Needed. (1998)
[WebDNA] WebDNA.us site speed (2011)
pc (1997)
searching problem (1998)
Date or time comparisons have bugs ... (1998)
message board (2001)
Saving Text Areas with Orders (1997)
Date Bug (1998)
Problem with WebDNA Store Order (2004)
Document Contains No Data! (1997)