Re: [REPLACE] inside [FOUNDITEMS]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19184
interpreted = N
texte = >Since all changes are RAM-based and _instantanious_, the behaivior that you >described is normal and expected.Dave's description is exactly correct. What's really going on inside a [LineItems] loop when you display a field like [INV] is that a [Lookup] is being done for you that finds the corresponding SKU for that lineitem and grabs that field's value from the database. If you change the database, you change the value. If we didn't do this magic for you, then you'd be stuck doing lookups yourself in WebDNA every time you wanted a field out of the database, and that could look ugly real quick.The correct way to do this in your case is to use the textA-E fields in the order file to store values from the database at the moment you add something to the cart. [TextA] will always look in the orderfile itself rather than dynamically look in the database. You can see the GeneralStore stores the [Title] field this way.Technical 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: [REPLACE] inside [FOUNDITEMS] (Kenneth Grome 1998)
  2. Re: [REPLACE] inside [FOUNDITEMS] (Peter Ostry 1998)
  3. Re: [REPLACE] inside [FOUNDITEMS] (Michael Winston 1998)
  4. Re: [REPLACE] inside [FOUNDITEMS] (Kenneth Grome 1998)
  5. Re: [REPLACE] inside [FOUNDITEMS] (Bob Minor 1998)
  6. Re: [REPLACE] inside [FOUNDITEMS] (PCS Technical Support 1998)
  7. Re: [REPLACE] inside [FOUNDITEMS] (Michael Winston 1998)
  8. Re: [REPLACE] inside [FOUNDITEMS] (PCS Technical Support 1998)
  9. Re: [REPLACE] inside [FOUNDITEMS] (Dave MacLeay 1998)
  10. Re: [REPLACE] inside [FOUNDITEMS] (PCS Technical Support 1998)
  11. Re: [REPLACE] inside [FOUNDITEMS] (Kenneth Grome 1998)
  12. RE: [REPLACE] inside [FOUNDITEMS] (Olin 1998)
  13. [REPLACE] inside [FOUNDITEMS] (Michael Winston 1998)
  14. Re: [REPLACE] inside [FOUNDITEMS] (Dave MacLeay 1998)
  15. RE: [REPLACE] inside [FOUNDITEMS] (Olin 1998)
>Since all changes are RAM-based and _instantanious_, the behaivior that you >described is normal and expected.Dave's description is exactly correct. What's really going on inside a [lineitems] loop when you display a field like [INV] is that a [lookup] is being done for you that finds the corresponding SKU for that lineitem and grabs that field's value from the database. If you change the database, you change the value. If we didn't do this magic for you, then you'd be stuck doing lookups yourself in WebDNA every time you wanted a field out of the database, and that could look ugly real quick.The correct way to do this in your case is to use the textA-E fields in the order file to store values from the database at the moment you add something to the cart. [TextA] will always look in the orderfile itself rather than dynamically look in the database. You can see the GeneralStore stores the [Title] field this way.Technical 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:

Real Audio files (1997) Odd request (2003) Error Lob.db records error message not name (1997) PhotoMill -> PhotoMaster (1997) Problems with [Applescript] (1997) sendmail tag when with in comment tags. (2000) [CART] (1997) Using Plug-In while running 1.6.1 (1997) # fields limited? (1997) AUTHENTICATE TAG Problem (2000) WebSTAR and WebSTAR/SSL with WebCatalog plugins (1998) RAM variables (1997) Unanswered trigger questions ... (2003) template includes encrypted template (1999) FW: WebDNA-Talk searchable? (1997) WebCat2: Items xx to xx shown, etc. (1997) setitems, one more thing (1997) WebCat2 Append problem (B14Macacgi) (1997) Shipping by order total (2003) WebCat2b12--[searchstring] bug (1997)