Re: Storing Data

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45473
interpreted = N
texte = You can store your BW value in one of the order file headers - header1 - header40 - then recall it from within any direct or implied orderfile context. Something like:[setheader cart=[cart]]header20=[BW][/setheader]will set it. To access the value, just use [header20] inside an orderfile context.Note: Once you go down the road of using the header1-40 fields in the order file, it is extremely important to document and keep track of what header you use for what purpose.- brianAt 12:09 PM -0600 11/19/02, Eric wrote: >Hi, > >I have the following working in the invoice.inc file: > >[math show=F]BW=0[lineitems]+[lookup >db=admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=WEIGHT]*[quantity][/lineitems][/math] > >The Calculated data is stored in [BW] in the invoice.inc file and I >can use the stored data anywhere in the invoice.inc file. > >My question is: > >How can I store the data so that I can call and use the data stored >in [BW] to be used in the WebMerchant/AdminResults.inc file? > >I tried but it shows zero value. > >I even put the following in the AdminResults.inc file > >[math show=F]BW=0[lineitems]+[lookup >db=../admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=WEIGHT]*[quantity][/lineitems][/math] > >and it still shows a zero value. > >Thanks, > >Eric------------------------------------------------------------- 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: Storing Data (Stuart Tremain 2002)
  2. Re: Storing Data (Eric 2002)
  3. Re: Storing Data (Brian Fries 2002)
  4. Storing Data (Eric 2002)
You can store your BW value in one of the order file headers - header1 - header40 - then recall it from within any direct or implied orderfile context. Something like:[setheader cart=[cart]]header20=[BW][/setheader]will set it. To access the value, just use [header20] inside an orderfile context.Note: Once you go down the road of using the header1-40 fields in the order file, it is extremely important to document and keep track of what header you use for what purpose.- brianAt 12:09 PM -0600 11/19/02, Eric wrote: >Hi, > >I have the following working in the invoice.inc file: > >[math show=F]BW=0[lineitems]+[lookup >db=admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=WEIGHT]*[quantity][/lineitems][/math] > >The Calculated data is stored in [BW] in the invoice.inc file and I >can use the stored data anywhere in the invoice.inc file. > >My question is: > >How can I store the data so that I can call and use the data stored >in [BW] to be used in the WebMerchant/AdminResults.inc file? > >I tried but it shows zero value. > >I even put the following in the AdminResults.inc file > >[math show=F]BW=0[lineitems]+[lookup >db=../admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=WEIGHT]*[quantity][/lineitems][/math] > >and it still shows a zero value. > >Thanks, > >Eric------------------------------------------------------------- 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/ Brian Fries

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:

[protect] on NT? (1997) Shopping Cart Directory (2000) Almost a there but..bye bye NetCloak (1997) BUG?- .html extention and not working. (2000) Kanji in http requests (1998) WebCommerce: Folder organization ? (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Changes to the List (1997) Add more fields to an existent data base (1997) WC2.0 Memory Requirements (1997) New Guestbook Source (1997) Bit off subject -- Faxing orders (1997) Authenticate (1997) WebCat 4.02b5 Mac OSXS [sendmail] bug (2000) Possible Bug in 2.0b15.acgi (1997) Missing Tags from Docs (2002) Re:Emailer and encryption (1997) Encryption Question (2006) Help! (2000) [WebDNA] WebDNA 8.6 announced - New features (2018)