Conditional searching & displaying
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14810
interpreted = N
texte = (apologies if this is a dup. My first attempt didn't seem to find its waythrough the ether...)I'm having a little trouble with constructing the logic for the followingscenario:Problem 1:I'm creating a search form (using pulldowns ) that looks for doctors byspecialty and city. However if the [numfound] is less than 2 then I'd liketo:A. Display whatever records did match the criteria, andB. Use a [Showif] statement to display some error messageC. Do a second search based upon the same [showif] criteria that only usesthe previous arguement for the Specialty field (ignoring the Cityarguement) and displays those results in the same results.tmpl below theerror message.How do I pass the search arguements from the Specialty search into a secondsearch while ignoring the search by City arguement?Problem 2:In the results page I'd like display the city field only once for each setof doctors in that city that met the above search criteria, for example:La JollaDoc 1Doc 2San DiegoDoc 3Doc 5Pacific BeachDoc 4How do I write a [showif] (hideif ?) statement that only displays thatfield once for a given set of records.TIA ____________________________________| Marty Schmid || -Artwerks- || Design/Advertising/Web Publishing || || T. 619.274.5029 || F. 619.274.5656 || e-mail: marty@artwerks.com ||____________________________________|
Associated Messages, from the most recent to the oldest:
(apologies if this is a dup. My first attempt didn't seem to find its waythrough the ether...)I'm having a little trouble with constructing the logic for the followingscenario:Problem 1:I'm creating a search form (using pulldowns ) that looks for doctors byspecialty and city. However if the [numfound] is less than 2 then I'd liketo:A. Display whatever records did match the criteria, andB. Use a
[showif] statement to display some error messageC. Do a second search based upon the same
[showif] criteria that only usesthe previous arguement for the Specialty field (ignoring the Cityarguement) and displays those results in the same results.tmpl below theerror message.How do I pass the search arguements from the Specialty search into a secondsearch while ignoring the search by City arguement?Problem 2:In the results page I'd like display the city field only once for each setof doctors in that city that met the above search criteria, for example:La JollaDoc 1Doc 2San DiegoDoc 3Doc 5Pacific BeachDoc 4How do I write a
[showif] (hideif ?) statement that only displays thatfield once for a given set of records.TIA ____________________________________| Marty Schmid || -Artwerks- || Design/Advertising/Web Publishing || || T. 619.274.5029 || F. 619.274.5656 || e-mail: marty@artwerks.com ||____________________________________|
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:
Groups doesn't work (1997)
Help name our technology! (1997)
sorting question... (2001)
Plugin or CGI or both (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Grep on Emails w/ Multiple Dots (2004)
ShowNext example for GeneralStore (1997)
Thanks ! (1997)
Using Plug-In while running 1.6.1 (1997)
RE: Adding headers to email (1997)
Frames and WebCat (1997)
[writefile] (1997)
WebDNA dying or ... ? (2005)
SpiderBotLock! (2003)
Busted at the Border (1998)
unable to launch acgi in WebCat (1997)
[numfound] within summ=t (2000)
Include Files (1998)
New public beta available (1997)
Solution to truncated email problem! (1998)