Re: I'm having trouble using [url][interpret][math] together in lookup
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13440
interpreted = N
texte = Grant,My fields use the '&' character so I do need [url]! Also,I am pretty surethat I do need the [interpret],this might be because the lookup is inside of a search or because myfieldnames are category1, category2, etc. (in fact, you were the one whosuggested last week that I use [interpret] ).So, I think that I need something like:[url][interpret][category[math]loopnumber[/math]][/interpret][/url],but I can't get it working ....Steve>>[category[math]>>This is not allowed, but [category][math] is fine. I think I can simplify>your WebDNA quite a bit, since in your case the [interpret] and even the>[url] are not needed. Even the [math] would not be needed except it looks>like you're trying to carry a different [index] in from an outside loop,>so I'll leave that in.>>[lookup>db=MYDATA.db&lookInField=USERCHOICE&value=[category][math]loopnumber[/math]&retu>rnField=CODE¬Found=Err!]>>You don't need [interpret] because that is already implied (there are only>a few special cases where it is needed). You don't need [url], because>WebCatalog is smart enough to allow spaces and such inside embedded>WebDNA...unless your category field contains '&', in which case I'll shut>up and you can put it back in.>>Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====>Pacific Coast Software | WebCatalog Pro, WebCommerce Solution>11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster>San Diego, CA 92128 | SiteGuard>619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com>Inside of the LOOP, I am trying to use field values such as Name[index],>but this is>causing problems. WebCat turns the code into the literal text Name1, but it>does not give the value Name1 should have.You probably need to wrap an [interpret] around the built-up fieldnamesyou're trying to display.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====
Associated Messages, from the most recent to the oldest:
Grant,My fields use the '&' character so I do need
[url]! Also,I am pretty surethat I do need the
[interpret],this might be because the lookup is inside of a search or because myfieldnames are category1, category2, etc. (in fact, you were the one whosuggested last week that I use
[interpret] ).So, I think that I need something like:
[url][interpret][category
[math]loopnumber[/math]][/interpret][/url],but I can't get it working ....Steve>>[category
[math]>>This is not allowed, but [category]
[math] is fine. I think I can simplify>your WebDNA quite a bit, since in your case the
[interpret] and even the>
[url] are not needed. Even the
[math] would not be needed except it looks>like you're trying to carry a different [index] in from an outside loop,>so I'll leave that in.>>[lookup>db=MYDATA.db&lookInField=USERCHOICE&value=[category]
[math]loopnumber[/math]&retu>rnField=CODE¬Found=Err!]>>You don't need
[interpret] because that is already implied (there are only>a few special cases where it is needed). You don't need
[url], because>WebCatalog is smart enough to allow spaces and such inside embedded>WebDNA...unless your category field contains '&', in which case I'll shut>up and you can put it back in.>>Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====>Pacific Coast Software | WebCatalog Pro, WebCommerce Solution>11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster>San Diego, CA 92128 | SiteGuard>619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com>Inside of the LOOP, I am trying to use field values such as Name[index],>but this is>causing problems. WebCat turns the code into the literal text Name1, but it>does not give the value Name1 should have.You probably need to wrap an
[interpret] around the built-up fieldnamesyou're trying to display.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====
Steve Rosenbaum
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:
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
Help needed! (SIMS recommendation) (1998)
[WebDNA] GREP question (2010)
Protect (1997)
Cross OS Compatible HTML emailing (2003)
Dates (1996)
Exclamation point (1997)
[OT] (waaaay OT) further off topic than before (2004)
Listserver problem (1997)
Calendar (1997)
Generating unique SKU from [cart] (1997)
WebCat & WebTen (1997)
using showpage and showcart commands (1996)
Auto Delete EmailCompleted Files (2002)
It just Does't add up!!! (1997)
Numbers only code (2000)
zzounds.com. Was: ANN: Strategic Partnership with (2000)
problems with WebCat-Plugin (1997)
Re:Help name our technology! (1997)
pull downs (1997)