Re: variables in [addlineitem]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17388
interpreted = N
texte = >I am not sure yet when WebCat can use a defined variable and when not. >Is it somehow depending on the depth of nested context's?Math variables are only visible from within a [Math] context. Other information, such as [NumFound] is only available within the context that provides it (or deeper). You can see a discussion of this in the online docs at http://www.smithmicro.com/WebDNAReference/Contexts.html[NumFound] <-- meaningless, because it's not inside a [Search][Search blah] [NumFound] <-- has meaning here [/Search][Search] [Loop start=1&end=10] [NumFound] <-- means the same thing here, because it keeps looking 'outward' for [Search] [/Loop] [/Search][Search #1] [NumFound] <-- shows num found items from outer search [Search #2] [NumFound] <-- shows num found items from inner search [/Search] [/Search][math]fred=2*3[/math] . . . [math]fred[/math] <-- displays 6Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: variables in [addlineitem] (PCS Technical Support 1998)
  2. Re: variables in [addlineitem] (Kenneth Grome 1998)
  3. Re: variables in [addlineitem] (Peter Ostry 1998)
  4. Re: variables in [addlineitem] (Kenneth Grome 1998)
  5. variables in [addlineitem] (Peter Ostry 1998)
>I am not sure yet when WebCat can use a defined variable and when not. >Is it somehow depending on the depth of nested context's?Math variables are only visible from within a [math] context. Other information, such as [NumFound] is only available within the context that provides it (or deeper). You can see a discussion of this in the online docs at http://www.smithmicro.com/WebDNAReference/Contexts.html[NumFound] <-- meaningless, because it's not inside a [search][Search blah] [NumFound] <-- has meaning here [/Search][search] [Loop start=1&end=10] [NumFound] <-- means the same thing here, because it keeps looking 'outward' for [search] [/Loop] [/Search][Search #1] [NumFound] <-- shows num found items from outer search [Search #2] [NumFound] <-- shows num found items from inner search [/Search] [/Search][math]fred=2*3[/math] . . . [math]fred[/math] <-- displays 6Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

Running 2 two WebCatalog.acgi's (1996) WebSTAR and WebSTAR/SSL with WebCatalog plugins (1998) Document Contains No Data! (1997) Maximum of found items?? (2000) Fun with Dates - finally resolved but.... (1997) Summing results of a nested search (2006) searchable list archive (1997) uploads (2000) Problems w/ heavy use of cart header fields? (1998) Quit revisited (1997) WebCatalog for guestbook ? (1997) For those of you not on the WebCatalog Beta... (1997) Assigning Serialized Customer Numbers (1997) week # as date (2001) Problems passing [SKU] with $Replace in 2.0 (1997) How To question on setting up downloads (1997) Help! WebCat2 bug (1997) when is date system date or order date? (1997) WC on Mac OS X or Mac OS X Server 2.x (2001) [WebDNA] WebDNA 6.2 and Mac OS X 10.5 Client / Server ? (2009)