[LINEITEMS]
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 31801
interpreted = N
texte = Just a weird little thing I noticed...ok, so we are working with a hypothetical cart here:if I go:[ORDERFILE=/ShoppingCarts/[CART]]and [cart] has 3 items (sku1, sku2, sku3) in it, and then I:[LINEITEMS][INDEX], [SKU][/LINEITEMS]it gives me 1 sku1,2 sku2,3 sku3, but if I want to pull up a specific lineitem by doing a:[LINEITEMS Index=1][SKU][/LINEITEMS]it gives me sku2...so basically, it appears that iondexing starts at 1 when using [LINEITEMS] on it's own, but when you use [LINEITEMS index=x] it starts at 0... is this a bug in my code, or is it just a weirdness in WebCatalog?Derek-- Derek ChauranWeb Developer, Dark Horse Comicsderekc@darkhorse.comhttp://www.darkhorse.com-------------------------------------------------------------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:
Just a weird little thing I noticed...ok, so we are working with a hypothetical cart here:if I go:[ORDERFILE=/ShoppingCarts/[cart]]and [cart] has 3 items (sku1, sku2, sku3) in it, and then I:[lineitems][INDEX], [SKU][/LINEITEMS]it gives me 1 sku1,2 sku2,3 sku3, but if I want to pull up a specific lineitem by doing a:[LINEITEMS Index=1][SKU][/LINEITEMS]it gives me sku2...so basically, it appears that iondexing starts at 1 when using [lineitems] on it's own, but when you use [LINEITEMS index=x] it starts at 0... is this a bug in my code, or is it just a weirdness in WebCatalog?Derek-- Derek ChauranWeb Developer, Dark Horse Comicsderekc@darkhorse.comhttp://www.darkhorse.com-------------------------------------------------------------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/
Derek C.
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:
PIXO support (1997)
RAM crash (1998)
TRAINING videos - Prove IT. (1998)
[taxRate] [TaxTotal] ? (1997)
BGcolor (1997)
WebCat2 - Getting to the browser's username/password data (1997)
Uploading stuff along with variables (2006)
URL for Discussion Archive (1997)
remotely add + sign (1997)
Stinkin' [Referrer] (1998)
WCS Newbie question (1997)
[WebDNA] Admin Lag (2009)
WC2b15 File Corruption (1997)
New Site Announcement (1998)
Country & Ship-to address & other fields ? (1997)
Balancing randomness (2000)
Problem with version 4 browsers (1998)
Locking up with WebCatalog... (1997)
WebCat2b12 forgets serial # (1997)
carriage returns in data (1997)