Re: Is this possible in simple search? question?

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17252
interpreted = N
texte = >If I understand correctly, this should work: >[SEARCH >db=/DATABASE.db&waCODEdatarq=1002&CODEword=ww&group1field=CODE&wnGROUP1datarq=10 >03&GROUP1word=ww]This is a good start, but it will not work, because whenever you use grouped fields, you must use a different group for EACH search parameter that's related to the original db field. You cannot use the original field name in one parameter and the group field name in another parameter.This is what you want instead:[SEARCH db=/DATABASE.db &group1field=CODE &group2field=CODE &group1word=ww &group2word=ww &wagroup1datarq=1002 &wngroup2datarq=1003 ]In this example you will note that there are no search parameters dealing with the CODE field -- instead, the search parameters all deal with either the group1 field or the group2 field.By the way, I put each parameter on a separate line here to make it easier for you to see what I've done. Just be sure to put this into the proper WebCat format (get rid of the carriage returns) before using this in your template ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: Is this possible in simple search? question? (Michael Winston 1998)
  2. Re: Is this possible in simple search? question? (Kenneth Grome 1998)
  3. Re: Is this possible in simple search? question? (Kenneth Grome 1998)
  4. Re: Is this possible in simple search? question? (Michael Winston 1998)
  5. Is this possible in simple search? question? (Gary Richter 1998)
>If I understand correctly, this should work: >[SEARCH >db=/DATABASE.db&waCODEdatarq=1002&CODEword=ww&group1field=CODE&wnGROUP1datarq=10 >03&GROUP1word=ww]This is a good start, but it will not work, because whenever you use grouped fields, you must use a different group for EACH search parameter that's related to the original db field. You cannot use the original field name in one parameter and the group field name in another parameter.This is what you want instead:[SEARCH db=/DATABASE.db &group1field=CODE &group2field=CODE &group1word=ww &group2word=ww &wagroup1datarq=1002 &wngroup2datarq=1003 ]In this example you will note that there are no search parameters dealing with the CODE field -- instead, the search parameters all deal with either the group1 field or the group2 field.By the way, I put each parameter on a separate line here to make it easier for you to see what I've done. Just be sure to put this into the proper WebCat format (get rid of the carriage returns) before using this in your template ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

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:

Templates in Memory (2000) RAM variables (1997) Document Contains no data, or showcart error. (1997) Images do not upload completely ... (2003) WebCat2: Items xx to xx shown, etc. (1997) Re:E-mailer application times out (1998) unitshipcost vs shipcosts (1997) WebCatalog for guestbook ? (1997) encrypted query string trouble on OSX (2001) [math show=f]nuCheck1=[check1]=1[/math] = proper syntax?? (2000) wish list (2002) writing db to disk (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) [isfile] ? (1997) WebCat2_Mac RETURNs in .db (1997) b18 problem on NT 4.0 (1997) Getting Values into Cart the easy way?* (1998) Paymethod=cc allows all zeros - Anyone?? (1999) Multiple prices (1997) second question of the day... (2004)