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:
RE: Webcatalog and CyberSTUD (1998)
Adding Text (2000)
javascript implementation of MD5 algorithm for Authorize.Net (2003)
Out of the woodwork (2007)
Need relative path explanation (1997)
Micro-managing External Links (2006)
Add message to Order (1997)
ListFiles Bug (1998)
[SearchString] usage (1997)
Almost a there but..bye bye NetCloak (1997)
WebCatalog not running after upgrade (2000)
HomePage Caution (1997)
[shownext] (1998)
Need help with emailer- 2 issues (1997)
[shownext] and descending order (1997)
Hiding HTML and breaking the page (1997)
Emailer error codes (1999)
Remote administration (1998)
details (2003)
Is there an easier way? (1998)