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:
SOP for WebDNA talk - MSNBot Crashing (2004)
Intermitent problem using [referrer] (1997)
[WebDNA] OT: 2 php/MySQL & 1 Flash person needed FT (2008)
WebCat2b15MacPlugin - [protect] (1997)
HELP WITH DATES (1997)
Server crash (1997)
Protecting webdelivery (1997)
[TCPSend] and whois? (1999)
WC2b15 File Corruption (1997)
Sandbox DB permissions (2005)
Sku numbers (1997)
[ListFiles] & [loop] (1998)
WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)
Multiple instances of database (2003)
Searching multiple Databases (1997)
Applescript error (1998)
ShippingCosts (1998)
Banners (1997)
Searching and accented chars (1998)
Shopping Carts folder does not exist in Linux (2000)