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:
WebCat2: multiple currency support (1997)
Trouble with formula.db + more explanation (1997)
Multiple Users.db Possible? (1997)
getchars broken? (1997)
Problems appending to database (1997)
Database Fields (1997)
Email...Thanks (1997)
frames & carts (1997)
Frames and WebCat (1997)
suffix mapping for NT? (1997)
webdelivery.html and webna (1997)
Date search - yes or no (1997)
No Data Results (1997)
Misunderstanding?? (1997)
info (1997)
More DateMath problems (1997)
Integration? (1999)
[OT] (waaaay OT) (2004)
Windows nt service pack 3 upgrade (1997)
There's a bug in the math context ... (1997)