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:

A multi-processor savvy WebCatalog? (1997) How true is this? (1999) [protect] on NT? (1997) Encrypted links ... (2000) Attn: Bug in GeneralStore example b15 (1997) [WriteFile] problems (1997) Calculating multiple shipping... (1997) Adding up line items. (2000) Domain-wide prefs... WAS Multiple transactions per cart (2000) Ampersand is breaking search context (1999) WCS Newbie question (1997) More on the email templates (1997) emailer (1997) Can you help a newbie out? (2000) random within a specified range (2001) sorting by date (1999) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Sort Order on a page search (1997) completed orders database (1997) [WebDNA] Server version 8.6 ? (2018)