searching twice on same field
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 15901
interpreted = N
texte = My search template is set up to allow a search on two fields. This workswell as long as the two fields are different. However, if the same fieldis entered both times, the search comes up with 0 itemsThe search string passed to web catalog through the form looks likethis:SearchField=Writeup&SearchAction=ws&SearchCriteria=vitamin+bible&SearchLogic=&SearchField2=Writeup&SearchAction2=wo&searchCriteria2=vitamin+hair+prostate&cart=29666141900&searchMax=3&startat=1As you can see, on the one hand I'm looking for a string, on the otherany of the words will do.On the results page it is formatted as a context search as following:[searchdb=aliveBooksv1.db&max=[searchMax]&cart=[cart]&[SearchAction][SearchField]data[SearchLogic]=[SearchCriteria]&[SearchAction2][SearchField2]data[SearchLogic]=[SearchCriteria2]&startat=[startat]]So this particular search doesn't work. Is groupfield the only way toaccomplish this? If so, what is the appropriate WebDNA command to grabthe text either before it is sent from the form, or before it isprocessed by the context on the receiving template, in order that itmight be massaged into the appropriate form?Chris GurscheEC&T Electronic Colour & Type Corp
Associated Messages, from the most recent to the oldest:
My search template is set up to allow a search on two fields. This workswell as long as the two fields are different. However, if the same fieldis entered both times, the search comes up with 0 itemsThe search string passed to web catalog through the form looks likethis:SearchField=Writeup&SearchAction=ws&SearchCriteria=vitamin+bible&SearchLogic=&SearchField2=Writeup&SearchAction2=wo&searchCriteria2=vitamin+hair+prostate&cart=29666141900&searchMax=3&startat=1As you can see, on the one hand I'm looking for a string, on the otherany of the words will do.On the results page it is formatted as a context search as following:[searchdb=aliveBooksv1.db&max=[searchMax]&cart=
[cart]&[SearchAction][SearchField]data[SearchLogic]=[SearchCriteria]&[SearchAction2][SearchField2]data[SearchLogic]=[SearchCriteria2]&startat=[startat]]So this particular search doesn't work. Is groupfield the only way toaccomplish this? If so, what is the appropriate WebDNA command to grabthe text either before it is sent from the form, or before it isprocessed by the context on the receiving template, in order that itmight be massaged into the appropriate form?Chris GurscheEC&T Electronic Colour & Type Corp
Chris Gursche
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:
off topic - dna snipets (1997)
WebCat2 several catalogs? (1997)
[if] and [showif] - A solution (2002)
Some Questions (1997)
.hdr files (2004)
Generating unique SKU from [cart] - Still Stumped... (1997)
AppleScript question (1997)
GoodPath and MoveFile (2000)
Help! WebCat2 bug (1997)
Sorting Numbers (1997)
ShowNext (1997)
Nested tags count question (1997)
I can help! (1996)
problems with 2 tags shakur (1997)
F3 crashing server (1997)
[WebDNA] OT - does anyone know how to get Fetch/BBedit to leave my last line-ending char intact? (2009)
[WebDNA] Sorting -- Dealing with Blanks (2008)
wish list (2002)
Re[4]: Problem with new formvariables (2000)
Emailer update for Mac? (1998)