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 works well as long as the two fields are different. However, if the same field is entered both times, the search comes up with 0 itemsThe search string passed to web catalog through the form looks like this: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 other any of the words will do.On the results page it is formatted as a context search as following:[search db=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 to accomplish this? If so, what is the appropriate WebDNA command to grab the text either before it is sent from the form, or before it is processed by the context on the receiving template, in order that it might be massaged into the appropriate form?Chris Gursche EC&T Electronic Colour & Type Corp Associated Messages, from the most recent to the oldest:

    
  1. Re: searching twice on same field (Grant Hulbert 1998)
  2. searching twice on same field (Chris Gursche 1998)
My search template is set up to allow a search on two fields. This works well as long as the two fields are different. However, if the same field is entered both times, the search comes up with 0 itemsThe search string passed to web catalog through the form looks like this: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 other any of the words will do.On the results page it is formatted as a context search as following:[search db=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 to accomplish this? If so, what is the appropriate WebDNA command to grab the text either before it is sent from the form, or before it is processed by the context on the receiving template, in order that it might be massaged into the appropriate form?Chris Gursche EC&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:

using showpage and showcart commands (1996) Can't access [OrderFile] OSXS WC4 (2000) 2.01 upgrade problems (1997) Re:Searchable Archives (1998) Writefile outside WebSTAR hierarchy? (1997) I have troubles to send message out (1998) View Source from cache (1997) A quickie question (1997) read and write you own cookies with webcat (1997) Weird Problem (1997) setting line item numbers (1998) WebCat2 several catalogs? (1997) Attn: Bug in GeneralStore example b15 (1997) Help name our technology! I found it (1997) So what ya working on? (or have you completed?) (2004) RE: Web Logs (1998) error: Too many nested [xxx] contexts (1997) price on detail, but not shoppingcart (1997) Re:no [search] with NT (1997) Exclude by date - multiple (1997)