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:
Associative lookup style? + bit more (1997)
passing a variable in a pulldown (2005)
Hosts who have upgraded to v5.0? (2003)
all records returned. (1997)
Date stamp and purging (1998)
Searching multiple Databases (1997)
Beta 18 (1997)
Where's Cart Created ? (1997)
# fields limited? (1997)
PIXO support (1997)
Search in 2 or more catalogs (1997)
Bug? (1997)
Re:Emailer and encryption (1997)
Creating 404 Not Found pages (1999)
Mail Integration (1999)
Calculating multiple shipping... (1997)
Not really WebCat (1997)
F3 crashing server (1997)
sort problems....bug or brain fart? (1997)
WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)