Help on how to store calculated value

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45423
interpreted = N
texte = Hi,I know this is easy but somehow I am brain dead.I have the following calculation and it gives the correct value[math]0[lineitems]+[lookup db=admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=WEIGHT]*[quantity][/lineitems][/math]I wish to store the results in a field (to be called BW) so that I can use this field to display the calculated data and for further calculation.I use[BW]=[math]0[lineitems]+[lookup db=admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=WEIGHT]*[quantity][/lineitems][/math]But it did not work.Can someone help?? Stuart suggested to use the following,[Orderfile file=file] [Math show=F]BW=0[lineitems]+([lookup db=admin/products.db&lookinfield=SKU&value=[url][sku][/ url]&returnfield=WEIGHT]*[quantity])[/lineitems][/Math] [/OrderFile]Then when you need the value call the Math variable ....Here is the total weight = [BW]but it did not work and gives the following error message:Error: Can't open order file. Ignoring [OrderFile] context ------------------------------------------------------------- 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:

    
  1. Re: Help on how to store calculated value (Eric 2002)
  2. Re: Help on how to store calculated value (Brian Fries 2002)
  3. Re: Help on how to store calculated value (Kalin Mintchev 2002)
  4. Re: Help on how to store calculated value (Kalin Mintchev 2002)
  5. Re: Help on how to store calculated value (Stuart Tremain 2002)
  6. Re: Help on how to store calculated value (Stuart Tremain 2002)
  7. Re: Help on how to store calculated value (Kalin Mintchev 2002)
  8. Re: Help on how to store calculated value (Eric 2002)
  9. Re: Help on how to store calculated value (Donovan Brooke 2002)
  10. Re: Help on how to store calculated value (Stuart Tremain 2002)
  11. Help on how to store calculated value (Eric 2002)
Hi,I know this is easy but somehow I am brain dead.I have the following calculation and it gives the correct value[math]0[lineitems]+[lookup db=admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=WEIGHT]*[quantity][/lineitems][/math]I wish to store the results in a field (to be called BW) so that I can use this field to display the calculated data and for further calculation.I use[BW]=[math]0[lineitems]+[lookup db=admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=WEIGHT]*[quantity][/lineitems][/math]But it did not work.Can someone help?? Stuart suggested to use the following,[Orderfile file=file] [Math show=F]BW=0[lineitems]+([lookup db=admin/products.db&lookinfield=SKU&value=[url][sku][/ url]&returnfield=WEIGHT]*[quantity])[/lineitems][/Math] [/OrderFile]Then when you need the value call the Math variable ....Here is the total weight = [BW]but it did not work and gives the following error message:Error: Can't open order file. Ignoring [orderfile] context ------------------------------------------------------------- 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/ Eric

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:

Quit revisited (1997) RE: Automatic Forwarding using WebCat (1997) Been meaning to ask... (1997) WC2b15 File Corruption (1997) Smart caching problems with 2.1b3? (1997) Mailer (2006) truncating email part II (1997) emailer w/F2 (1997) Date Sort question (2004) extending webcatalog (1997) MacAuthorize order data fields WAS:How To question... (1997) Calculating multiple shipping... (1997) WebCatalog for Mac 2.0.1 Released (1997) Can you specify encoding=multiline? (2000) [include file=filename.inc&strip=t] (2002) Need relative path explanation (1997) 2.0 Info (1997) authenticating a second user (1997) Listserver problem (1997) authorizenet/webmerchant (2000)