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 sure that I do need the [interpret], this might be because the lookup is inside of a search or because my fieldnames are category1, category2, etc. (in fact, you were the one who suggested 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 fieldnames you're trying to display.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Associated Messages, from the most recent to the oldest:

    
  1. Re: I'm having trouble using [url][interpret][math] together in lookup (Steve Rosenbaum 1997)
  2. I'm having trouble using [url][interpret][math] together in lookup (Steve Rosenbaum 1997)
Grant,My fields use the '&' character so I do need [url]! Also,I am pretty sure that I do need the [interpret], this might be because the lookup is inside of a search or because my fieldnames are category1, category2, etc. (in fact, you were the one who suggested 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 fieldnames you'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:

WebCatalog for Postcards ? (1997) W* 3.x & WebCat + WebMerchant (1998) Another question (1997) Looking for WebCat developer/contractor (2000) Shipping charge question (2003) Lastautonumber (2005) Re[2]: Putting a page between checkout and invoice (1999) Search over 500 (2000) WebCat2 Append problem (B14Macacgi) (1997) WebTen and WebCat (1997) Security Hole - NetCloak Update (1998) upgrade? (1997) WebCatalog on OSX and %CPU (2003) WC2.0 Memory Requirements (1997) Email SMTP Error 411 (2006) Multiply prices (1997) looping table rows (1999) Blog/social networking shortcut (2007) Hiring: Web programmer in Seattle area (2000) Execute Applescript (1997)