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:

problems with WebCat-Plugin () no global [username] or [password] displayed ... (1997) GuestBook example (1997) Getting total number of items ordered (1997) [WebDNA] can webdna's [grep] find and replace ONLY the literal "+" char? (2012) Error Messages Returned to User (1997) [ListFiles] context & alias (1997) File Upload (2000) Fun with dates (1997) [searchString] (1997) re: How can I record purchases to a database? (1998) strange IE 4.0 (1998) [CART] inside a [LOOP] (1997) More on the email templates (1997) [OT] On a side note.. (2003) WebCatalog seems to choke on large (2meg) html files. (1998) Sorting Numbers (1997) Multiple fields on 1 input (1997) Banners (1997) WCS Newbie question (1997)