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:

Web Catalog 2 demo (1997) Calendar using WebCatalog? (1997) Signal Raised (1997) Rhapsody? (1997) I'm tired of all this! (2000) Can you set [index]=end+1 for [break]? (1998) WebCat2final1 crashes (1997) [WebDNA] Yikes, upgraded to OS Mavericks and now WebDNA not running (2013) Event Calendar (2004) Plugin or CGI or both (1997) [WebDNA] divisible by 1 (2011) Server Freeze (1998) # fields limited? (1997) E-Mail Preferences in Admin Folder (1997) Two submit buttons ? (1997) Last version of webcatalog (2001) Next X hits (1996) WebCat2: Found Items syntax, etc. (1997) newbie ?: splitting webcat files between ssl and non-ssl sites (1999) Database of Tax Rates? (1997)