Re: searching multiple databases 
This WebDNA talk-list message is from 1997  
It keeps the original formatting. 
numero = 14788
interpreted = N
texte = >I'm attempting to search another database using the [search] command in my>template based on the sku of a product selected on a previous page.  If a>customer clicks on Shirt, I need to show on Detail.tmpl color options, I>had thought that building a colors.db and haveing fields sku and color,>hoping to search that db by that perticular sku selected and returning a>
 menu with the perticular colors available to that item.>>I tried>[search db=colors.db&geSKUdata=[sku]]>[founditems][Color][/founditems] Yes, that's the right idea (make sure you close off that inner search with [/search], too).  It what way is it not working?  What do you see when you View Source?[search main database]  [founditems] <-- loops thru all shirts found    [search colors database&eqSKUdata=[sku]] <-- [sku] comes from main database      [founditems] <-- loops thru all matching colors      [/founditems]    [/search]  [/founditems][/search]Try just doing the inner search and manually setting the sku in the URL when you hit that page.  This should tell you if you've got the right logic.Grant Hulbert, V.P. Engineering      | ==== eCommerce for the Rest of Us ====Pacific Coast Software               | WebCatalog, WebMerchant,11770 Bernardo Plaza Court           | SiteEdit Pro, PhotoMaster,San Diego, CA 92128                  | Typhoon619/675-1106  Fax: 619/675-0372      | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest: 
>I'm attempting to search another database using the [search]  command in my>template based on the sku of a product selected on a previous page.  If a>customer clicks on Shirt, I need to show on Detail.tmpl color options, I>had thought that building a colors.db and haveing fields sku and color,>hoping to search that db by that perticular sku selected and returning a>  menu with the perticular colors available to that item.>>I tried>[search db=colors.db&geSKUdata=[sku]]>[founditems] [Color][/founditems] Yes, that's the right idea (make sure you close off that inner search with [/search], too).  It what way is it not working?  What do you see when you View Source?[search main database]  [founditems]  <-- loops thru all shirts found    [search colors database&eqSKUdata=[sku]] <-- [sku] comes from main database      [founditems]  <-- loops thru all matching colors      [/founditems]    [/search]  [/founditems][/search]Try just doing the inner search and manually setting the sku in the URL when you hit that page.  This should tell you if you've got the right logic.Grant Hulbert, V.P. Engineering      | ==== eCommerce for the Rest of Us ====Pacific Coast Software               | WebCatalog, WebMerchant,11770 Bernardo Plaza Court           | SiteEdit Pro, PhotoMaster,San Diego, CA 92128                  | Typhoon619/675-1106  Fax: 619/675-0372      | http://www.smithmicro.com/
Grant Hulbert  
 
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: 
 
html being uncooperative (2000)  
 
problems with 2 tags (1997)  
 
DON'T use old cart file! (1997)  
 
Forms Search Questions (1997)  
 
PCS Frames (1997)  
 
[SHOWIF AND/OR] (1997)  
 
referrer usage (1997)  
 
 UPS (2003)  
 
Redirect (2000)  
 
[SHOWIF]s and empty arguments (1997)  
 
WebCat2 - Getting to the browser's username/password data (1997)  
 
Locking up with WebCatalog... (1997)  
 
Gil's in the lead (1999)  
 
 European Convention (2004)  
 
cart ID (1998)  
 
[WebDNA] line/Row Insert (2017)  
 
VeriSign News (2002)  
 
Secure server question (1997)  
 
WebCat2 beta 11 - new prefs ... (1997)  
 
off-topic:  SMS interface? (2001)