Re: lookups
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 28277
interpreted = N
texte = Your Code:[lookup db=Briggs.db&value=[sku]&lookInfield=[Quantity]&returnfield=[Quantity]&NA]I think this is Correct:[lookup db=Briggs.db&value=[sku]&lookInfield=sku&returnfield=Quantity¬found=NA]Because the value=[sku] means you are searching on the sku right?If so, the LookInField should be the sku field. The name/value pair for thevalue attribute just indicates what sku number you are looking up, you thenhave to tell WebCat what field to look in with the LookInField name/valuepair attribute. The return field is the information it returns. Also youforgot the 'notfound=' in front of your NA plus you do not need the quotemarks.Here is the code from the online Command Reference:[LOOKUP db=databasePath&value=searchValue&lookInField=searchField&returnField=fieldName¬Found=TextIfNotFound]> From: Eric palhof
> Reply-To: (WebCatalog Talk)> Date: Tue, 29 Feb 2000 16:44:55> To: (WebCatalog Talk)> Subject: lookups> > I am trying to write a lookup and nothing works.> > ....TD>[lookup > db=Briggs.db&value=[sku]&lookInfield=[Quantity]&returnfield=[Quantity]&NA]> > > I want to lookup the values in the Quantity field of the DB. These values> are different than Quantity in a WebCatalog tag. They are actually Quantity> On Hand and I want the viewer to see their exisitng inventory to decide how> much they can order. I then want to substract the ordered amount from the> existing total. Can anyone help?> > -------------------------------------------------------------> Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.> To end your Mail problems go to .> > This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> -------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Associated Messages, from the most recent to the oldest:
Your Code:[lookup db=Briggs.db&value=[sku]&lookInfield=[Quantity]&returnfield=[Quantity]&NA]I think this is Correct:[lookup db=Briggs.db&value=[sku]&lookInfield=sku&returnfield=Quantity¬found=NA]Because the value=[sku] means you are searching on the sku right?If so, the LookInField should be the sku field. The name/value pair for thevalue attribute just indicates what sku number you are looking up, you thenhave to tell WebCat what field to look in with the LookInField name/valuepair attribute. The return field is the information it returns. Also youforgot the 'notfound=' in front of your NA plus you do not need the quotemarks.Here is the code from the online Command Reference:[LOOKUP db=databasePath&value=searchValue&lookInField=searchField&returnField=fieldName¬Found=TextIfNotFound]> From: Eric palhof > Reply-To: (WebCatalog Talk)> Date: Tue, 29 Feb 2000 16:44:55> To: (WebCatalog Talk)> Subject: lookups> > I am trying to write a lookup and nothing works.> > ....TD>[lookup > db=Briggs.db&value=[sku]&lookInfield=[Quantity]&returnfield=[Quantity]&NA]> > > I want to lookup the values in the Quantity field of the DB. These values> are different than Quantity in a WebCatalog tag. They are actually Quantity> On Hand and I want the viewer to see their exisitng inventory to decide how> much they can order. I then want to substract the ordered amount from the> existing total. Can anyone help?> > -------------------------------------------------------------> Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.> To end your Mail problems go to .> > This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> -------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Eric Ridgley
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:
FW: Shipping calculations (1997)
Problems with [Applescript] (1997)
Help name our technology! (1997)
WebCat2 beta FTP site (1997)
Emailer tracking (1997)
PageMaker/Quark to db (1999)
argh must send var to iframe to load webDNA search (2003)
Funny Submissions From a Form Page (1999)
The beginning (1997)
price totals (2003)
CA sales tax (1998)
webcat2b12 CGI -- Date comparisons (1997)
date to days? (2005)
WebCat2b12--[searchstring] bug (1997)
Pull down menu for categories (2000)
Help! WebCat2 bug (1997)
OK, here goes... (1997)
Signal Raised error (1997)
FW: Shipping calculations (1997)
Field Totals (2004)