Re: My Eyes doth deceive me
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 40675
interpreted = N
texte = Donovan wrote:> O.K., I've been on this waaaay tooo long now.> > This:> [LOOKUP> db=admin/products.db&value=[url][theSKU][/url]&lookInField=SKU&returnField=DISCAT¬Found=TextIfNotFound]> Always throw out everything except what you are testing. Put just that above line in a template and hard-code [theSKU] and see if it works. There are a couple of things that could be happening (your context is formed correctly AFAICT):1) the database is not where you think it isIn this case, the template should be in a directory directly above a directory called admin which contains the products.db. If this is not the case, change your db= line to correspond to reality.2) [theSKU] is not being passed onto this pageIf in doubt, you should always throw an HTML comment at the top of the template with the form variable you are questioning, something like this: since that way you can see exactly what the form has for that variable before it is used in any context.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Donovan wrote:> O.K., I've been on this waaaay tooo long now.> > This:> [LOOKUP> db=admin/products.db&value=[url][theSKU][/url]&lookInField=SKU&returnField=DISCAT¬Found=TextIfNotFound]> Always throw out everything except what you are testing. Put just that above line in a template and hard-code [theSKU] and see if it works. There are a couple of things that could be happening (your context is formed correctly AFAICT):1) the database is not where you think it isIn this case, the template should be in a directory directly above a directory called admin which contains the products.db. If this is not the case, change your db= line to correspond to reality.2) [theSKU] is not being passed onto this pageIf in doubt, you should always throw an HTML comment at the top of the template with the form variable you are questioning, something like this: since that way you can see exactly what the form has for that variable before it is used in any context.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
John Peacock
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:
Compressed cookies? (2003)
All choices on IE different than Netscape (1997)
politeness (was searches with dash...) Please Read (2000)
It gets better... posting problems + Webcat 3.0.7 available - did anyone know? (2000)
Searching multiple Databases (1997)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
Removing [showif] makes a big difference in speed (1997)
syntax question, not in online refernce (1997)
Where is f2? (1997)
Table sorting by selected category then others (2004)
Locking up with WebCatalog... (1997)
Help! WebCat2 bug (1997)
Search and sort (2001)
Alternating BGColors in Table Rows (1998)
Summing fields (1997)
WebCatalog Technical Reference (1997)
PC Authorize & Webmerchant (1998)
WebCat vs. ASP (1999)
WebCat control of Print (2001)
Date search and sendmail (1997)