Re: Nested Lookups
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 20845
interpreted = N
texte = The code I tried is:>[lookup>db=cusmas.db&lookinfield=SKU&value=[Account]&returnfield=Price Code][lookup>db=price[Price>Code].txt&lookinfield=SKU&returnfield=Price][/lookup][/lookup]>>All this does is return the Price Code from the first lookup.Steve, your syntax is wrong. Be careful *not* to write a lookup as if it were a context, because it's not a context -- it's a simple webdna *tag*. This is probably similar what you want, but you'll have to change the db and field name references to make it work on your site:[lookup db=customers.db&value=[Account]&lookinfield=SKU&returnfield=[lookup db=yourPrice.db&value=???&lookinfield=SKU&returnfield=Price]]And don't forget, the value parameters must match the corresponding database field values *exactly*, including uppercase and lowercase characters ...Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
The code I tried is:>[lookup>db=cusmas.db&lookinfield=SKU&value=[Account]&returnfield=Price Code][lookup>db=price[Price>Code].txt&lookinfield=SKU&returnfield=Price][/lookup][/lookup]>>All this does is return the Price Code from the first lookup.Steve, your syntax is wrong. Be careful *not* to write a lookup as if it were a context, because it's not a context -- it's a simple webdna *tag*. This is probably similar what you want, but you'll have to change the db and field name references to make it work on your site:[lookup db=customers.db&value=[Account]&lookinfield=SKU&returnfield=[lookup db=yourPrice.db&value=???&lookinfield=SKU&returnfield=Price]]And don't forget, the value parameters must match the corresponding database field values *exactly*, including uppercase and lowercase characters ...Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://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:
[WebDNA] An apache config file that works? (2013)
Practical Uses (2003)
Exclamation point (1997)
Caching pages...again (2001)
[WebDNA] The phone home system is undesirable ... (2008)
Variable Prices (1998)
[WebDNA] Globals Folder Status (2018)
Odd linefeed problem (2003)
Snake Bites (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Re:2nd WebCatalog2 Feature Request (1996)
MasterCounter - Does this work?? (1999)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Username for Admin Group (1997)
PCS Emailer's role ? (1997)
Shopping with Accounts (2003)
restarting service remotely on NT (1997)
[WebDNA] PayPal Instant Payment Notification Guide (2009)
More on the email templates (1997)
encryption seeds xing (1998)