numero = 10383
interpreted = N
texte = >> Gil, you could try replacing your checkboxes temporarily with a scrolling>> list. Be sure to make multiple choices selectable in the list. If the code>> is updated for scrolling lists, that might work.>>>> The other solution might even be better, and that's to collect the data on>> the search form, but don't do the search from the sarch form. Instead,>> place all the form values into variables, then pass them to the results>> form. Next, place a [search] context in the results form, and use the>> variables to assemble the search parameters as shown in the HTML example I>> quoted from the HTML docs above.>>Well, I think I'm almost there. Thank you Ken, for your input. I liked>your second idea better, so I gave it a try. This is from the page that>calls the template:>>
>
>>And this is the search syntax from the template:>>[search>db=catalog.txt&max=25&astitlesort=1&eqint5datarq=2&wotext1datarq=230,270,235,25>0,603,220,280,285,9005,015&group1field=description+title+text7&wogroup1datarq=ke>yword&group1word=ww&startAt=1]>>Unfortunately, it's still not working, but I feel like I'm on the right>track. Any further guidance based on this syntax would be most>appreciated. Sorry about the volume of data here, but I didn't know a>better way to explain it.No problem with including the entire HTML from your pages, it makes thingsa lot clearer than trying to describe things sometimes, at least for me ...:)When I do something like this, I always name my variables beginning withv. so I can always remember that they are variables. Then I use namesthat help me to understand what those variables refer to, for example, Iwould do something like this:>SIZE=+1>Battles and>Campaigns >The>Confederacy >SIZE=+1>Gettysburg Then on the results page, my search context would be something like this:[search>db=catalog.txt&max=25&astitlesort=1&eqint5datarq=2&wotext1datarq=[v.battles_and>_campaigns],[v.the_confederacy],[v.gettysburg]&group1field=description+title+tex>t7&wogroup1datarq=keyword&group1word=ww&startAt=1]Using this variable naming convention makes my life a lot easier, because Inever get confused about whether I'm looking at a variable or at a textstring that I 'thought' was a variable. You don't have to do this, but itworks for me!One thing you do have to remember, however, is that when you're usingvariables in a search context, you have to place them inside [] brackets... so WebCat2 knows that it's supposed to replace those variable 'names'with the 'values' you've assigned them on the previous template.Maybe that's why your search isn't giving you the results you expect ...because it's using the literal values(230,270,235,250,603,220,280,285,9005,015) instead of the value thosevariables represent.In your particular case, with the way you've written your searchparameters, WebCat2 is using the literal values of your variables ... soit's probably retrieving every record in your database even though you'reonly checking *some* or *none* of the checkboxes, right? :)If you don't want to use my variable-naming convention, try using thissearch context and see if it works properly for you:[searchdb=catalog.txt&max=25&astitlesort=1&eqint5datarq=2&wotext1datarq=[230],[270],[235],[250],[603],[220],[280],[285],[9005],[015]&group1field=description+title+text7&wogroup1datarq=keyword&group1word=ww&startAt=1]Sincerely,Ken------------------------------------To leave this talk list send an email to macjordomo@smithmicro.comwith BODYunsubscribe WebDNA-Talk------------------------------------
Associated Messages, from the most recent to the oldest:
>> Gil, you could try replacing your checkboxes temporarily with a scrolling>> list. Be sure to make multiple choices selectable in the list. If the code>> is updated for scrolling lists, that might work.>>>> The other solution might even be better, and that's to collect the data on>> the search form, but don't do the search from the sarch form. Instead,>> place all the form values into variables, then pass them to the results>> form. Next, place a [search] context in the results form, and use the>> variables to assemble the search parameters as shown in the HTML example I>> quoted from the HTML docs above.>>Well, I think I'm almost there. Thank you Ken, for your input. I liked>your second idea better, so I gave it a try. This is from the page that>calls the template:>>
>
>>And this is the search syntax from the template:>>[search>db=catalog.txt&max=25&astitlesort=1&eqint5datarq=2&wotext1datarq=230,270,235,25>0,603,220,280,285,9005,015&group1field=description+title+text7&wogroup1datarq=ke>yword&group1word=ww&startAt=1]>>Unfortunately, it's still not working, but I feel like I'm on the right>track. Any further guidance based on this syntax would be most>appreciated. Sorry about the volume of data here, but I didn't know a>better way to explain it.No problem with including the entire HTML from your pages, it makes thingsa lot clearer than trying to describe things sometimes, at least for me ...:)When I do something like this, I always name my variables beginning withv. so I can always remember that they are variables. Then I use namesthat help me to understand what those variables refer to, for example, Iwould do something like this:>SIZE=+1>Battles and>Campaigns >The>Confederacy >SIZE=+1>Gettysburg Then on the results page, my search context would be something like this:[search>db=catalog.txt&max=25&astitlesort=1&eqint5datarq=2&wotext1datarq=[v.battles_and>_campaigns],[v.the_confederacy],[v.gettysburg]&group1field=description+title+tex>t7&wogroup1datarq=keyword&group1word=ww&startAt=1]Using this variable naming convention makes my life a lot easier, because Inever get confused about whether I'm looking at a variable or at a textstring that I 'thought' was a variable. You don't have to do this, but itworks for me!One thing you do have to remember, however, is that when you're usingvariables in a search context, you have to place them inside [] brackets... so WebCat2 knows that it's supposed to replace those variable 'names'with the 'values' you've assigned them on the previous template.Maybe that's why your search isn't giving you the results you expect ...because it's using the literal values(230,270,235,250,603,220,280,285,9005,015) instead of the value thosevariables represent.In your particular case, with the way you've written your searchparameters, WebCat2 is using the literal values of your variables ... soit's probably retrieving every record in your database even though you'reonly checking *some* or *none* of the checkboxes, right? :)If you don't want to use my variable-naming convention, try using thissearch context and see if it works properly for you:[searchdb=catalog.txt&max=25&astitlesort=1&eqint5datarq=2&wotext1datarq=[230],[270],[235],[250],[603],[220],[280],[285],[9005],[015]&group1field=description+title+text7&wogroup1datarq=keyword&group1word=ww&startAt=1]Sincerely,Ken------------------------------------To leave this Talk List send an email to macjordomo@smithmicro.comwith BODYunsubscribe WebDNA-Talk------------------------------------
Kenneth Grome
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...