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 a results page I'd like to see if someone searched by Specialty and City (in this case, Cardiologists in the city of La Jolla) and the returned numfound is less than 2.Your search found the following:Dr. Smith <---------- this is the record that Cardiologist met both search criteria La JollaAdditionally, you may wish to review <---- the [showif] error these other Cardiologists practicing message in neighboring areas:Dr. Jones <--------- the results from the secondary search which Cardiologist searched only by Specialty San Diego (not by Specialty *and* City)Dr. Johnson Cardiologist Pacific 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 to the docs the Summary parameter will remove all but the first record in found list. What I'd like to do is display the entire list of found items but only display the city field once per original instance within the group of found items. How's that for obtuse??thanks -marty 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)
>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 a results page I'd like to see if someone searched by Specialty and City (in this case, Cardiologists in the city of La Jolla) and the returned numfound is less than 2.Your search found the following:Dr. Smith <---------- this is the record that Cardiologist met both search criteria La JollaAdditionally, you may wish to review <---- the [showif] error these other Cardiologists practicing message in neighboring areas:Dr. Jones <--------- the results from the secondary search which Cardiologist searched only by Specialty San Diego (not by Specialty *and* City)Dr. Johnson Cardiologist Pacific 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 to the docs the Summary parameter will remove all but the first record in found list. What I'd like to do is display the entire list of found items but only display the city field once per original instance within the group of 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)