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:
[WebDNA] Webserver does not respond occasionally (2018)
Problems with [Applescript] (1997)
Date Calulation (1997)
Can I do these? (1997)
Search in 2 or more catalogs (1997)
Need formum software... (2003)
gremlins? (2000)
RAM problems, [appendfile] problems (1998)
Tea Room trouble (1997)
Listfields and foundItems (2002)
Re:[ShowIf] and empty fields (1997)
Grouping Fields (2006)
Database access (2003)
THANKS!!! ShipCosts.db and debugging (1997)
trouble updating records in database (1998)
email formatting (1999)
Re:multiple digests, please stop (1997)
Multiple prices (1997)
possible, WebCat2.0 and checkboxes-restated (1997)
[SHOWIF]s and empty arguments (1997)