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:
WebCommerce: Folder organization ? (1997)
Need relative path explanation (1997)
WebCat hosting providers? (1997)
Sort Issue? (2000)
Quit revisited (1997)
[WriteFile] problems (1997)
WebCatalog NT beta 18 problem (1997)
wc 2 pro users - sites, quotes wanted (1997)
webcatalog 2.1.3 ACGI Weirdness? (1998)
New public beta available (1997)
Size limit for tmpl editor ? (1997)
Simple Page (2000)
RE: Re:Signal Raised (1997)
[listfiles] with max? (2000)
WebCat2 Append problem (B14Macacgi) (1997)
WebCat2: multiple currency support (1997)
docs for WebCatalog2 (1997)
RE: WebCat cannot handle compatible search parameters? (1997)
[WebDNA] Snow Leoopard and v7 (2011)
Webstar 1.3.1 PPC (1997)