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] isbeing done for you that finds the corresponding SKU for that lineitem andgrabs 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 bestuck doing lookups yourself in WebDNA every time you wanted a field out ofthe 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 theorder file to store values from the database at the moment you addsomething to the cart. [TextA] will always look in the orderfile itselfrather than dynamically look in the database. You can see the GeneralStorestores 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 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>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] isbeing done for you that finds the corresponding SKU for that lineitem andgrabs 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 bestuck doing lookups yourself in WebDNA every time you wanted a field out ofthe 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 addsomething to the cart. [TextA] will always look in the orderfile itselfrather than dynamically look in the database. You can see the GeneralStorestores 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 | Typhoon619/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)