Re: formula inside database to calculate weights
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15816
interpreted = N
texte = >I have some products that have weights that depend upon which options are >chosen. I tried to put the formula for calculating the weights inside >the [weight] field. But this WebDNA is not evaluated when the data field >is retrieved. If I display the [weight] field, it displays the whole >formula in all the gory WebDNA detail.>>I thought this should work. What am I missing?If you want to force some text from a field to be interpreted as WebDNA, then wrap [Interpret[ around it, as in [Interpret][weight][/Interpret].Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>I have some products that have weights that depend upon which options are >chosen. I tried to put the formula for calculating the weights inside >the [weight] field. But this WebDNA is not evaluated when the data field >is retrieved. If I display the [weight] field, it displays the whole >formula in all the gory WebDNA detail.>>I thought this should work. What am I missing?If you want to force some text from a field to be interpreted as WebDNA, then wrap [Interpret[ around it, as in
[interpret][weight][/Interpret].Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Grant Hulbert
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:
MySQL 4.1 (2004)
[WebDNA] [append] does not add the newline char at the end of (2009)
BR (1997)
WebSiphon and MGI links (2000)
Cookie Newbie (2002)
Erotic Sites (1997)
Problem with empty form-variables in [search] (1998)
WebCat2b12 CGI Mac -- Problems propagating the cart through frames...still (1997)
PC Auth Hub+Merchant (1998)
4D Database (1997)
shipcost (1997)
emailer (1997)
Running _every_ page through WebCat ? (1997)
WCS Newbie question (1997)
Confusing [protect] (long) (1999)
[WriteFile] problems (1997)
this works sometimes and sometimes not (1997)
WebCat2 - Getting to the browser's username/password data (1997)
Credit Card Verification.... (1998)
WebCatalog can't find database (1997)