Nested search
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12284
interpreted = N
texte = Hi All,I have been trying to get a search on a category type, then listing items under that category, then listing the next catagory, and listing more item and so on.Basically it sort of works it will list the catagory, as well as items in the table underneath. The problem is that it lists ALL items for each catagory. I thought by putting eqcategorydata=[category] in the enclosed seach it would look at the current catagory listed... obviously not.Probably a small coding error.Any comments appreciated.cheers,Rick-------------------------------------------------------------------------------------------Here is my code:From a link on the Entry.tmpl page a particular catalog, called CATALOG-Name is selected.Results.tmpl$search?db=catalog.db&eqcataloguedata=CATALOG-Name&cart=[cart]&categorysumm=T&categorysort=1&searchTitle=CATALOG-Nameon the results page I have a nested search.[foundItems]
[category]
[search db=catalog.db&eqcataloguedata=[searchtitle]&eqcategorydata=[category]&eqtitledata=[title]&titlesumm=T]
Product Code | title | More Details |
[founditems][productCode] | [title] | Details & Order |
[/founditems][/search]
[/foundItems]
Associated Messages, from the most recent to the oldest:
Hi All,I have been trying to get a search on a category type, then listing items under that category, then listing the next catagory, and listing more item and so on.Basically it sort of works it will list the catagory, as well as items in the table underneath. The problem is that it lists ALL items for each catagory. I thought by putting eqcategorydata=[category] in the enclosed seach it would look at the current catagory listed... obviously not.Probably a small coding error.Any comments appreciated.cheers,Rick-------------------------------------------------------------------------------------------Here is my code:From a link on the Entry.tmpl page a particular catalog, called CATALOG-Name is selected.Results.tmpl$search?db=catalog.db&eqcataloguedata=CATALOG-Name&cart=
[cart]&categorysumm=T&categorysort=1&searchTitle=CATALOG-Nameon the results page I have a nested search.
[founditems][category]
[search db=catalog.db&eqcataloguedata=[searchtitle]&eqcategorydata=[category]&eqtitledata=[title]&titlesumm=T]
Product Code | title | More Details |
[founditems][productCode] | [title] | [url][title][/url]&skusumm=T&skusort=1&searchtitle=[url][title][/url]&max=10&cart=[cart]>Details & Order |
[/founditems][/search]
[/foundItems]
Richard Wylie
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:
Security Issues and WebCommerce Solution (1997)
Calendar (1997)
QuantityPrice computed? (1998)
Quit revisited (1997)
Robert Minor duplicate mail (1997)
Error message (1999)
Setting user/password with a form. (2000)
Filemaker Pro Template for Orders (1999)
SiteEdit NewFile.html ? (1997)
same products but different (1998)
Email within tmpl ? (1997)
what servers are supported for Typhoon? (1997)
[WebDNA] Still having problems (2008)
Sort Order on a page search (1997)
[WebDNA] TCPConnect/cURL alternative for windows? (2010)
Date Range Search not working (2000)
WebCatalog for guestbook ? (1997)
WC2.0 Memory Requirements (1997)
Limiting user access to .tmpl files (1997)
Almost a there but..bye bye NetCloak (1997)