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:

Questions To Answer (1997) webcat- multiple selection in input field (1997) [TaxableTotal] - not working with AOL and IE (1997) Almost a there but..bye bye NetCloak (1997) default value from Lookup (was Grant, please help me) (1997) Highlighting words found in a keyword search (2003) Problem with Formulas.db (1998) More DateMath problems (1997) can WC render sites out? (1997) Kaaaaahhhhhhhnnnnnnn! (1997) Converting SQL Microtime to Date and Time (2003) Multiple adding (1997) Dreamweaver plugin (2000) WebCatalog f2 Installation (1997) [WebDNA] Date: header on emails - timezone problem perhaps (2010) Cookie Crumble (1998) Need relative path explanation (1997) Emailer error (1998) Re2: frames & carts (1997) Hard Questions ? (1997)